diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-04 22:27:15 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-10-05 21:52:14 +0300 |
commit | 4a74e79b543c115bf2b5b7a4b29db139da20b90d (patch) | |
tree | 70852f164407da6a4067fab738582e9c8bf254b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2bca25eaeba6190efbfcb38ed169bd7ee43b5aaf (diff) | |
download | linux-4a74e79b543c115bf2b5b7a4b29db139da20b90d.tar.xz |
i2c: microchip: pci1xxxx: Fix comparison of -EPERM against an unsigned variable
The comparison of variable ret with -EPERM is always false because
ret is an u8 type. Fix this by making ret an int.
Cleans up clang warning:
drivers/i2c/busses/i2c-mchp-pci1xxxx.c:714:10: warning: result of comparison
of constant -1 with expression of type 'u8' (aka 'unsigned char') is always
false [-Wtautological-constant-out-of-range-compare]
Fixes: 361693697249 ("i2c: microchip: pci1xxxx: Add driver for I2C host controller in multifunction endpoint of pci1xxxx switch")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions