[PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe()

Andi Shyti andi.shyti at kernel.org
Thu Jul 27 06:30:51 PDT 2023


Hi Chen,

On Thu, Jul 27, 2023 at 09:16:35PM +0800, Chen Jiahao wrote:
> Referring to platform_get_irq()'s definition, the return value has
> already been checked if ret < 0, and printed via dev_err_probe().
> Calling dev_err_probe() one more time outside platform_get_irq()
> is obviously redundant.
> 
> Removing dev_err_probe() outside platform_get_irq() to clean up
> above problem.
> 
> Signed-off-by: Chen Jiahao <chenjiahao16 at huawei.com>

Reviewed-by: Andi Shyti <andi.shyti at kernel.org> 

Thanks,
Andi



More information about the linux-arm-kernel mailing list