Re: [PATCH net-next] nfc: pn533: pn533_phy_ops dev_[up,down] return int

From: David Miller
Date: Wed Nov 13 2019 - 15:15:17 EST


From: Lars Poeschel <poeschel@xxxxxxxxxxx>
Date: Wed, 13 Nov 2019 14:50:22 +0100

> Change dev_up and dev_down functions of struct pn533_phy_ops to return
> int. This way the pn533 core can report errors in the phy layer to upper
> layers.
> The only user of this is currently uart.c and it is changed to report
> the error of a possibly failing call to serdev_device_open.
>
> Reported-by: coverity-bot <keescook+coverity-bot@xxxxxxxxxxxx>
> Addresses-Coverity-ID: 1487395 ("Error handling issues")
> Fixes: c656aa4c27b1 ("nfc: pn533: add UART phy driver")
> Signed-off-by: Lars Poeschel <poeschel@xxxxxxxxxxx>

Applied, thanks Lars.