Skip to content

Commit bb1a580

Browse files
committed
usb/ohci-omap: remove unused variable
Commit c2e935a "USB: move transceiver from ehci_hcd and ohci_hcd to hcd and rename it as phy" removed the last use of the "ohci" variable in the usb_hcd_omap_remove function, but left the variable in place unused. Without this patch, building omap1_defconfig results in: In file included from drivers/usb/host/ohci-hcd.c:1013:0: drivers/usb/host/ohci-omap.c: In function 'usb_hcd_omap_remove': drivers/usb/host/ohci-omap.c:406:19: warning: unused variable 'ohci' [-Wunused-variable] Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Alan Stern <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Cc: Richard Zhao <[email protected]>
1 parent b2f0fa8 commit bb1a580

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/host/ohci-omap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,6 @@ static int usb_hcd_omap_probe (const struct hc_driver *driver,
403403
static inline void
404404
usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev)
405405
{
406-
struct ohci_hcd *ohci = hcd_to_ohci (hcd);
407-
408406
usb_remove_hcd(hcd);
409407
if (!IS_ERR_OR_NULL(hcd->phy)) {
410408
(void) otg_set_host(hcd->phy->otg, 0);

0 commit comments

Comments
 (0)