[PATCH] i2c: xiic: Correct return value check for xiic_reinit()
Wolfram Sang
wsa at kernel.org
Fri Sep 22 03:07:30 PDT 2023
On Wed, Sep 20, 2023 at 02:41:09PM +0100, Daniel Scally wrote:
> The error paths for xiic_reinit() return negative values on failure
> and 0 on success - this error message therefore is triggered on
> _success_ rather than failure. Correct the condition so it's only
> shown on failure as intended.
>
> Fixes: 8fa9c9388053 ("i2c: xiic: return value of xiic_reinit")
> Signed-off-by: Daniel Scally <dan.scally at ideasonboard.com>
Applied to for-current, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230922/bc72ee3d/attachment.sig>
More information about the linux-arm-kernel
mailing list