[PATCH -next] i2c: remove redundant dev_err_probe()

Conor Dooley conor at kernel.org
Tue Aug 1 06:34:49 PDT 2023


On Tue, Aug 01, 2023 at 08:45:51PM +0800, Zhu Wang wrote:
> When platform_get_irq() is called, the error message has been printed,
> so it need not to call dev_err_probe() to print error, and

> platform_get_irq() never returned zero.

Is that strictly true?

> Signed-off-by: Zhu Wang <wangzhu9 at huawei.com>
> ---
>  drivers/i2c/busses/i2c-davinci.c           | 2 +-

>  drivers/i2c/busses/i2c-microchip-corei2c.c | 5 ++---

Reviewed-by: Conor Dooley <conor.dooley at microchip.com>

Thanks,
Conor.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20230801/3740a37c/attachment.sig>


More information about the linux-riscv mailing list