Skip to content

Commit e1d98e4

Browse files
abdurrahman-nexthopAndi Shyti
authored andcommitted
i2c: xiic: remove duplicate error message
The devm_request_threaded_irq() already prints an error message. Remove the duplicate. Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20260223-i2c-xiic-v12-2-b6c9ce4e4f3c@nexthop.ai
1 parent 50c6349 commit e1d98e4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/i2c/busses/i2c-xiic.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,11 +1491,8 @@ static int xiic_i2c_probe(struct platform_device *pdev)
14911491
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
14921492
xiic_process, IRQF_ONESHOT,
14931493
pdev->name, i2c);
1494-
1495-
if (ret < 0) {
1496-
dev_err_probe(&pdev->dev, ret, "Cannot claim IRQ\n");
1494+
if (ret)
14971495
return ret;
1498-
}
14991496

15001497
i2c->singlemaster =
15011498
of_property_read_bool(pdev->dev.of_node, "single-master");

0 commit comments

Comments
 (0)