diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-03-29 11:26:06 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-14 08:24:38 +0200 |
commit | 46cdd1900fa7a1d7afd1f8d051e513105d0cea98 (patch) | |
tree | c477afc7a0f809c495a21ea1ecf0f03fa47e09fc /drivers/usb/gadget/udc/at91_udc.c | |
parent | usb: dwc3: better name for our request management lists (diff) | |
download | linux-46cdd1900fa7a1d7afd1f8d051e513105d0cea98.tar.xz linux-46cdd1900fa7a1d7afd1f8d051e513105d0cea98.zip |
usb: gadget: udc: at91: use PTR_ERR_OR_ZERO()
coccicheck found this pattern which could be
converted to PTR_ERR_OR_ZERO(). No functional
changes.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/at91_udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/at91_udc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c index d0d18947f58b..8bc78418d40e 100644 --- a/drivers/usb/gadget/udc/at91_udc.c +++ b/drivers/usb/gadget/udc/at91_udc.c @@ -1726,10 +1726,7 @@ static int at91sam9261_udc_init(struct at91_udc *udc) udc->matrix = syscon_regmap_lookup_by_phandle(udc->pdev->dev.of_node, "atmel,matrix"); - if (IS_ERR(udc->matrix)) - return PTR_ERR(udc->matrix); - - return 0; + return PTR_ERR_OR_ZERO(udc->matrix); } static void at91sam9261_udc_pullup(struct at91_udc *udc, int is_on) |