Skip to content

Commit

Permalink
USB: Fix unused label warnings in drivers/usb/host/ehci-hcd.c
Browse files Browse the repository at this point in the history
This gets rid of an annoying warning in ehci-hcd.c when DEBUG isn't
enabled:

    warning: label 'err_debug' defined but not used

by moving it inside the already-existing #ifdef DEBUG, so that it
matches the goto.  And now my regular build is warning-free again.

Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Oct 20, 2008
1 parent 9b7530c commit a9b6148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ static int __init ehci_hcd_init(void)
#ifdef DEBUG
debugfs_remove(ehci_debug_root);
ehci_debug_root = NULL;
#endif
err_debug:
#endif
clear_bit(USB_EHCI_LOADED, &usb_hcds_loaded);
return retval;
}
Expand Down

0 comments on commit a9b6148

Please sign in to comment.