diff options
| author | 2023-09-20 14:41:09 +0100 | |
|---|---|---|
| committer | 2023-09-22 12:04:39 +0200 | |
| commit | 59851fb05d759f13662be143eff0aae605815b0e (patch) | |
| tree | 81991bedf997058976c8617642ecfb56342168f2 /scripts/patch-kernel | |
| parent | i2c: mux: gpio: Add missing fwnode_handle_put() (diff) | |
| download | wireguard-linux-59851fb05d759f13662be143eff0aae605815b0e.tar.xz wireguard-linux-59851fb05d759f13662be143eff0aae605815b0e.zip | |
i2c: xiic: Correct return value check for xiic_reinit()
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@ideasonboard.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
