Re: [PATCH v2] NFC: nfcmrvl: fix error check return value of irq_of_parse_and_map()

From: Krzysztof Kozlowski
Date: Sun Apr 24 2022 - 06:47:53 EST


On 24/04/2022 04:57, cgel.zte@xxxxxxxxx wrote:
> From: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
>
> The irq_of_parse_and_map() function returns 0 on failure, and does not
> return an negative value.
>
> Fixes: b5b3e23e4cac ("NFC: nfcmrvl: add i2c driver")
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
> ---
> v2: don't print ret, and return -EINVAL rather than 0
> ---
> drivers/nfc/nfcmrvl/i2c.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

How about Jakub's idea of squashing here fix for SPI (correcting my
patch) with additional Fixes tag?

Fixes: caf6e49bf6d0 ("NFC: nfcmrvl: add spi driver")

Best regards,
Krzysztof