befa1c2d65
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:
|
||
---|---|---|
.. | ||
altmodes | ||
mux | ||
tcpm | ||
ucsi | ||
Kconfig | ||
Makefile | ||
bus.c | ||
bus.h | ||
class.c | ||
hd3ss3220.c | ||
mux.c | ||
qcom-pmic-typec.c | ||
stusb160x.c | ||
tps6598x.c |