usb: gadget: Remove redundant dev_err call in r8a66597_sudmac_ioremap()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 12:30:14 +0000 (20:30 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 20 Aug 2014 17:14:46 +0000 (12:14 -0500)
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>
drivers/usb/gadget/udc/r8a66597-udc.c

index 4600842..68a7d20 100644 (file)
@@ -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;
 }