linux/drivers/usb/isp1760
Rui Miguel Silva de940244e8 usb: isp1760: clean never read udc_enabled warning
When CONFIG_USB_ISP1761_UDC is not enabled the udc_enabled variable is
never used since it is short circuited before in the logic operations.

This would trigger the following warning by clang analyzer:

drivers/usb/isp1760/isp1760-core.c:490:2: warning: Value stored to 'udc_enabled' is never read [clang-analyzer-deadcode.DeadStores]
        udc_enabled = ((devflags & ISP1760_FLAG_ISP1763) ||
        ^
drivers/usb/isp1760/isp1760-core.c:490:2: note: Value stored to 'udc_enabled' is never read

Just swap the other of the operands in the logic operations.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/r/20210819180929.1327349-6-rui.silva@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-26 13:30:39 +02:00
..
isp1760-core.c usb: isp1760: clean never read udc_enabled warning 2021-08-26 13:30:39 +02:00
isp1760-core.h usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-hcd.c usb: isp1760: do not shift in uninitialized slot 2021-08-26 13:30:39 +02:00
isp1760-hcd.h usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-if.c usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-regs.h usb: isp1763: add peripheral mode 2021-05-21 20:05:32 +02:00
isp1760-udc.c usb: isp1760: isp1760-udc: Provide missing description for 'udc' param 2021-05-27 09:45:27 +02:00
isp1760-udc.h usb: isp1763: add peripheral mode 2021-05-21 20:05:32 +02:00
Kconfig usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00