[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230726170644.2474917-1-ruanjinjie@huawei.com>
Date: Wed, 26 Jul 2023 17:06:44 +0000
From: Ruan Jinjie <ruanjinjie@...wei.com>
To: <arnd@...db.de>, <gregkh@...uxfoundation.org>,
<linux-kernel@...r.kernel.org>
CC: <ruanjinjie@...wei.com>
Subject: [PATCH -next] misc: hi6421-spmi-pmic: Remove redundant dev_err()
There is no need to call the dev_err() function directly to print a custom
message when handling an error from the platform_get_irq() functions as it
going to display an appropriate error message in case of a failure.
Signed-off-by: Ruan Jinjie <ruanjinjie@...wei.com>
---
drivers/misc/hi6421v600-irq.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/misc/hi6421v600-irq.c b/drivers/misc/hi6421v600-irq.c
index caa3de37698b..e5ed94e98a3c 100644
--- a/drivers/misc/hi6421v600-irq.c
+++ b/drivers/misc/hi6421v600-irq.c
@@ -245,7 +245,6 @@ static int hi6421v600_irq_probe(struct platform_device *pdev)
priv->irq = platform_get_irq(pmic_pdev, 0);
if (priv->irq < 0) {
- dev_err(dev, "Error %d when getting IRQs\n", priv->irq);
return priv->irq;
}
--
2.34.1
Powered by blists - more mailing lists