Commit f9372b92 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Andi Shyti
Browse files

i2c: s3c2410: 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 platform_get_irq() function as
it is going to display an appropriate error message in case of a failure.

Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230726174226.2480552-1-ruanjinjie@huawei.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 224acec6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1076,7 +1076,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
	if (!(i2c->quirks & QUIRK_POLL)) {
		i2c->irq = ret = platform_get_irq(pdev, 0);
		if (ret < 0) {
			dev_err(&pdev->dev, "cannot find IRQ\n");
			clk_unprepare(i2c->clk);
			return ret;
		}