]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: Fix unused label warnings in drivers/usb/host/ehci-hcd.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 21:23:29 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 21:23:29 +0000 (14:23 -0700)
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 <torvalds@linux-foundation.org>
drivers/usb/host/ehci-hcd.c

index d343afacb0b03215822d5d1b0043fb1bfbb234ba..15a803b206b8ea72c4774ba6edb504a0fd5e964c 100644 (file)
@@ -1111,8 +1111,8 @@ clean0:
 #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;
 }