OSDN Git Service

soc: qcom: ipa: Remove superfluous error message around platform_get_irq()
authorTan Zhongjun <tanzhongjun@yulong.com>
Thu, 10 Jun 2021 14:01:18 +0000 (22:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:10:23 +0000 (14:10 -0700)
The platform_get_irq() prints error message telling that interrupt is
missing,hence there is no need to duplicated that message in the
drivers.

Signed-off-by: Tan Zhongjun <tanzhongjun@yulong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_smp2p.c

index a5f7a79..cf709df 100644 (file)
@@ -176,11 +176,8 @@ static int ipa_smp2p_irq_init(struct ipa_smp2p *smp2p, const char *name,
        int ret;
 
        ret = platform_get_irq_byname(smp2p->ipa->pdev, name);
-       if (ret <= 0) {
-               dev_err(dev, "DT error %d getting \"%s\" IRQ property\n",
-                       ret, name);
+       if (ret <= 0)
                return ret ? : -EINVAL;
-       }
        irq = ret;
 
        ret = request_threaded_irq(irq, NULL, handler, 0, name, smp2p);