Skip to contentSkip to conversation

usb: musb: tusb: remove dead code

PATCH New Paul Bolle 1 participant 1 message May 4, 2014

Subsystems (2)
lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 usb: musb: tusb: remove dead code

musb_in_tusb() is always set to 0, because CONFIG_USB_TUSB6010 is never set (it should have been CONFIG_USB_MUSB_TUSB6010). But musb_in_tusb() is unused anyway, so remove a few lines of dead code.

---
Usb, musb, and tusb! Is somebody sneaking nursery rhymes in the kernel tree? Anyhow, this patch is tested with git grep only.

 drivers/usb/musb/tusb6010.h | 6 ------
 1 file changed, 6 deletions(-)
drivers/usb/musb/tusb6010.h +0 -6
index 35c933a5d991..1864e24ac965 100644
@@ -14,12 +14,6 @@
 
 extern u8 tusb_get_revision(struct musb *musb);
 
-#ifdef CONFIG_USB_TUSB6010
-#define musb_in_tusb()			1
-#else
-#define musb_in_tusb()			0
-#endif
-
 #ifdef CONFIG_USB_TUSB_OMAP_DMA
 #define tusb_dma_omap()			1
 #else
Signature · 1 line
1.9.0