[PATCH -next 1/2] spi: Remove unnecessary print function dev_err()

Mark Brown broonie at kernel.org
Thu Jun 9 03:55:17 PDT 2022


On Thu, Jun 09, 2022 at 01:55:33PM +0800, Yang Li wrote:
> The function platform_get_irq() never returns 0, and the print function
> dev_err() is redundant because platform_get_irq() already prints an error.

Are you sure it never returns 0?  Note that 0 is a valid IRQ number on
some architectures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20220609/835515d5/attachment.sig>


More information about the linux-riscv mailing list