Skip to content

Commit 2478b9c

Browse files
Tian Taowsakernel
authored andcommitted
i2c: fix platform_get_irq.cocci warnings
Remove dev_err() messages after platform_get_irq*() failures. drivers/i2c/busses/i2c-hix5hd2.c:417:2-9: line 417 is redundant because platform_get_irq() already prints an error Signed-off-by: Tian Tao <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 61adf63 commit 2478b9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/i2c/busses/i2c-hix5hd2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,8 @@ static int hix5hd2_i2c_probe(struct platform_device *pdev)
413413
return PTR_ERR(priv->regs);
414414

415415
irq = platform_get_irq(pdev, 0);
416-
if (irq <= 0) {
417-
dev_err(&pdev->dev, "cannot find HS-I2C IRQ\n");
416+
if (irq <= 0)
418417
return irq;
419-
}
420418

421419
priv->clk = devm_clk_get(&pdev->dev, NULL);
422420
if (IS_ERR(priv->clk)) {

0 commit comments

Comments
 (0)