mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
i2c: remove redundant error print in stm32f7_i2c_probe
Coccinelle reports a redundant error print in stm32f7_i2c_probe. As 'platform_get_irq' already prints the error message, error print here is redundant and can be removed. Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn> Signed-off-by: Wolfram Sang <wsa@kernel.org>
This commit is contained in:
committed by
Wolfram Sang
parent
b39ab96aa8
commit
0b16cfd9e6
@@ -2026,12 +2026,8 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
irq_error = platform_get_irq(pdev, 1);
|
irq_error = platform_get_irq(pdev, 1);
|
||||||
if (irq_error <= 0) {
|
if (irq_error <= 0)
|
||||||
if (irq_error != -EPROBE_DEFER)
|
|
||||||
dev_err(&pdev->dev, "Failed to get IRQ error: %d\n",
|
|
||||||
irq_error);
|
|
||||||
return irq_error ? : -ENOENT;
|
return irq_error ? : -ENOENT;
|
||||||
}
|
|
||||||
|
|
||||||
i2c_dev->wakeup_src = of_property_read_bool(pdev->dev.of_node,
|
i2c_dev->wakeup_src = of_property_read_bool(pdev->dev.of_node,
|
||||||
"wakeup-source");
|
"wakeup-source");
|
||||||
|
Reference in New Issue
Block a user