diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-01-18 09:27:34 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-02-01 17:29:30 +0100 |
commit | 903b39e119245b52b9e929984189d7c96aa44d55 (patch) | |
tree | 35d4d3a2b99c8f56ff6fdc2c639bf2522133bca5 /net/llc/llc_s_ac.c | |
parent | ae4cc020379ac2a3e53ffcfdfc39453e1dc745fa (diff) |
usb: ohci-omap: avoid unused-variable warning
The dead code removal has led to 'need_transceiver' not being
used at all when OTG support is disabled:
drivers/usb/host/ohci-omap.c: In function 'ohci_omap_reset':
drivers/usb/host/ohci-omap.c:99:33: error: unused variable 'need_transceiver' [-Werror=unused-variable]
99 | int need_transceiver = (config->otg != 0);
Change the #ifdef check into an IS_ENABLED() check to make the
code more readable and let the compiler see where it is used.
Fixes: 8825acd7cc8a ("ARM: omap1: remove dead code")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/llc/llc_s_ac.c')
0 files changed, 0 insertions, 0 deletions