net: ipa: Remove useless error message
authorZihao Tang <tangzihao1@hisilicon.com>
Tue, 16 Mar 2021 09:41:06 +0000 (17:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:23:20 +0000 (15:23 -0700)
Fix the following coccicheck report:

drivers/net/ipa/gsi.c:1341:2-9:
line 1341 is redundant because platform_get_irq() already prints an error

Remove dev_err() messages after platform_get_irq_byname() failures.

Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c

index 390d340..2119367 100644 (file)
@@ -1337,10 +1337,9 @@ static int gsi_irq_init(struct gsi *gsi, struct platform_device *pdev)
        int ret;
 
        ret = platform_get_irq_byname(pdev, "gsi");
-       if (ret <= 0) {
-               dev_err(dev, "DT error %d getting \"gsi\" IRQ property\n", ret);
+       if (ret <= 0)
                return ret ? : -EINVAL;
-       }
+
        irq = ret;
 
        ret = request_irq(irq, gsi_isr, 0, "gsi", gsi);