diff options
author | 2020-10-28 17:33:09 +0100 | |
---|---|---|
committer | 2020-10-29 08:26:08 +0100 | |
commit | befa1c2d65c639a7aefa793d36d7229732f14642 (patch) | |
tree | a968fe1fb25e857f901a10a702d8cee74fc0d62a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: typec: add missing MODULE_DEVICE_TABLE() to stusb160x (diff) | |
download | wireguard-linux-befa1c2d65c639a7aefa793d36d7229732f14642.tar.xz wireguard-linux-befa1c2d65c639a7aefa793d36d7229732f14642.zip |
usb: typec: stusb160x: fix signedness comparison issue with enum variables
chip->port_type and chip->pwr_opmode are enums and when GCC considers them
as unsigned, the conditions are never met.
This patch takes advantage of the ret variable and fixes the following
warnings:
drivers/usb/typec/stusb160x.c:548 stusb160x_get_fw_caps() warn: unsigned 'chip->port_type' is never less than zero.
drivers/usb/typec/stusb160x.c:570 stusb160x_get_fw_caps() warn: unsigned 'chip->pwr_opmode' is never less than zero.
Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20201028163309.12878-1-amelie.delaunay@st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions