summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc/r8a66597-udc.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-07-20 14:30:14 +0200
committerFelipe Balbi <balbi@ti.com>2014-08-20 19:14:46 +0200
commit17c128e8c8b06138bb088e48be5a89c27257d405 (patch)
treecdfd0323952c747fa6d0c931d3c4c8466a735bad /drivers/usb/gadget/udc/r8a66597-udc.c
parentusb: dwc3: remove unnecessary OOM messages (diff)
downloadlinux-17c128e8c8b06138bb088e48be5a89c27257d405.tar.xz
linux-17c128e8c8b06138bb088e48be5a89c27257d405.zip
usb: gadget: Remove redundant dev_err call in r8a66597_sudmac_ioremap()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/r8a66597-udc.c')
-rw-r--r--drivers/usb/gadget/udc/r8a66597-udc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c
index 46008421c1ec..68a7d20b2bd8 100644
--- a/drivers/usb/gadget/udc/r8a66597-udc.c
+++ b/drivers/usb/gadget/udc/r8a66597-udc.c
@@ -1846,10 +1846,8 @@ static int r8a66597_sudmac_ioremap(struct r8a66597 *r8a66597,
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sudmac");
r8a66597->sudmac_reg = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(r8a66597->sudmac_reg)) {
- dev_err(&pdev->dev, "ioremap error(sudmac).\n");
+ if (IS_ERR(r8a66597->sudmac_reg))
return PTR_ERR(r8a66597->sudmac_reg);
- }
return 0;
}