Skip to content
Commit adcf6eae authored by Zhu Wang's avatar Zhu Wang Committed by Andi Shyti
Browse files

i2c: remove redundant dev_err_probe()



When platform_get_irq() is called, the error message has been printed,
so it need not to call dev_err_probe() to print error.

As the comment of platform_get_irq() says, it returned non-zero value
when it succeeded, and it returned negative value when it failed.

Signed-off-by: default avatarZhu Wang <wangzhu9@huawei.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230801134814.247782-1-wangzhu9@huawei.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent f5d5bc5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment