usb: gadget: Remove unnecessary print function dev_err()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 16 Jun 2022 09:04:10 +0000 (17:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jun 2022 14:31:09 +0000 (16:31 +0200)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

This was found by coccicheck:

./drivers/usb/gadget/udc/aspeed_udc.c:1546:2-9: line 1546 is redundant because platform_get_irq() already prints an error.

Acked-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220616090410.128483-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/aspeed_udc.c

index d771612..d75a4e0 100644 (file)
@@ -1542,7 +1542,6 @@ static int ast_udc_probe(struct platform_device *pdev)
        /* Find interrupt and install handler */
        udc->irq = platform_get_irq(pdev, 0);
        if (udc->irq < 0) {
-               dev_err(&pdev->dev, "Failed to get interrupt\n");
                rc = udc->irq;
                goto err;
        }