[PATCH v4 4/5] i2c: xiic: remove duplicate error message
Abdurrahman Hussain via B4 Relay
devnull+abdurrahman.nexthop.ai at kernel.org
Fri Jan 23 08:34:17 PST 2026
From: Abdurrahman Hussain <abdurrahman at nexthop.ai>
The devm_request_threaded_irq() already prints an error message. Remove
the duplicate.
Signed-off-by: Abdurrahman Hussain <abdurrahman at nexthop.ai>
---
drivers/i2c/busses/i2c-xiic.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index 6d47c9972719..800a27413978 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -1491,10 +1491,8 @@ static int xiic_i2c_probe(struct platform_device *pdev)
ret = devm_request_threaded_irq(dev, irq, NULL, xiic_process,
IRQF_ONESHOT, pdev->name, i2c);
- if (ret < 0) {
- dev_err_probe(dev, ret, "Cannot claim IRQ\n");
+ if (ret < 0)
return ret;
- }
i2c->singlemaster =
of_property_read_bool(dev->of_node, "single-master");
--
2.52.0
More information about the linux-arm-kernel
mailing list