Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: Fix unused label warnings in drivers/usb/host/ehci-hcd.c

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>

+1 -1
+1 -1
drivers/usb/host/ehci-hcd.c
··· 1111 1111 #ifdef DEBUG 1112 1112 debugfs_remove(ehci_debug_root); 1113 1113 ehci_debug_root = NULL; 1114 - #endif 1115 1114 err_debug: 1115 + #endif 1116 1116 clear_bit(USB_EHCI_LOADED, &usb_hcds_loaded); 1117 1117 return retval; 1118 1118 }