summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-07-15 10:32:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-15 17:25:57 +0200
commiteeed948c1d0b7dfcc58e17fd72370cdba0dfdf95 (patch)
treed2782f88510a14c93b9427e323861dae8406da59 /drivers/usb/cdns3/cdns3-ti.c
parent9607f3cd8b6633cae5a9c43d8a537add1af801da (diff)
usb: dwc2: gadget: Avoid pointless read of EP control register
Commit ec1f9d9f01384 ("usb: dwc2: gadget: parity fix in isochronous mode") moved these checks to dwc2_hsotg_change_ep_iso_parity() back in 2015. The assigned value hasn't been read back since. Let's remove the unnecessary H/W read. Fixes the following W=1 warning: drivers/usb/dwc2/gadget.c: In function ‘dwc2_hsotg_epint’: drivers/usb/dwc2/gadget.c:2981:6: warning: variable ‘ctrl’ set but not used [-Wunused-but-set-variable] 2981 | u32 ctrl; | ^~~~ Cc: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Minas Harutyunyan <hminas@synopsys.com> Link: https://lore.kernel.org/r/20200715093209.3165641-3-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions