[PATCH -next] mtd: rawnand: vf610_nfc: Do not check 0 for platform_get_irq()

Miquel Raynal miquel.raynal at bootlin.com
Fri Aug 4 00:03:43 PDT 2023


On Thu, 2023-08-03 at 08:50:56 UTC, Zhu Wang wrote:
> Since platform_get_irq() never returned zero, so it need not to check
> whether it returned zero, and we use the return error code of
> platform_get_irq() to replace the current return error code, for that
> platform_get_irq() may return -EINVAL or -ENXIO.
> 
> Signed-off-by: Zhu Wang <wangzhu9 at huawei.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list