usb: dwc3: qcom: suppress unused-variable warning
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 22 Aug 2022 10:05:50 +0000 (12:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 06:40:28 +0000 (08:40 +0200)
commite41a88f38d87f730647bb14df9211d32241d1176
tree2cf57e2663c67091f4d8aa95dad9e7436290548e
parent8d1e09cfbd4da67d68a03e86818db5340c05abb8
usb: dwc3: qcom: suppress unused-variable warning

The dwc3_qcom_read_usb2_speed() helper is now only called when the
controller is acting as host, but the compiler will warn that the hcd
variable is unused in gadget-only W=1 builds.

Fixes: c06795f114a6 ("usb: dwc3: qcom: fix gadget-only builds")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220822100550.3039-1-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c