Skip to contentSkip to conversation

staging: mxx_udc: remove unused code

PATCH In review Payal Kshirsagar 2 participants 3 messages Mar 21, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: mxx_udc: remove unused code

Remove the code enclosed by #if 0 and its #endif because that code never going to be run

---
 drivers/staging/emxx_udc/emxx_udc.h | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/emxx_udc/emxx_udc.h +0 -7
index 540e4ca..212aded 100644
@@ -8,13 +8,6 @@
 #ifndef _LINUX_EMXX_H
 #define _LINUX_EMXX_H
 
-/*---------------------------------------------------------------------------*/
-/*----------------- Default undef */
-#if FALSE
-#define DEBUG
-#define UDC_DEBUG_DUMP
-#endif
-
 /*----------------- Default define */
 #define	USE_DMA	1
 #define USE_SUSPEND_WAIT	1
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 13 lines · Payal Kshirsagar

Remove the code enclosed by #if 0 and its #endif because that code never going to be run

---
 drivers/staging/emxx_udc/emxx_udc.h | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/emxx_udc/emxx_udc.h +0 -0
index 540e4ca..212aded 100644

drivers/staging/emxx_udc/emxx_udc.h line 16

Quoted 9 lines
drivers/staging/emxx_udc/emxx_udc.h +0 -6
@@ -8,13 +8,6 @@
 #ifndef _LINUX_EMXX_H
 #define _LINUX_EMXX_H
 
-/*---------------------------------------------------------------------------*/
-/*----------------- Default undef */
-#if FALSE
-#define DEBUG
-#define UDC_DEBUG_DUMP
-#endif

The reason this is here is to make it "easy" for a developer to enable debugging for the driver.

Now we should just rely on the in-kernel dynamic debugging support, so we should be able to get rid of this, but before you do that, you need to remove the use of those two #defines on the codebase.

So for now, please leave this as-is.

thanks,

greg k-h

#2 lore raw
Quoted 29 lines · Greg KH

Review

Quoted 9 lines · Payal Kshirsagar

Remove the code enclosed by #if 0 and its #endif because that code never going to be run

---
 drivers/staging/emxx_udc/emxx_udc.h | 7 -------
 1 file changed, 7 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/emxx_udc/emxx_udc.h

drivers/staging/emxx_udc/emxx_udc.h line 11

Quoted 8 lines

index 540e4ca..212aded 100644

drivers/staging/emxx_udc/emxx_udc.h +0 -0
@@ -8,13 +8,6 @@
 #ifndef _LINUX_EMXX_H
 #define _LINUX_EMXX_H
 
 

-/*---------------------------------------------------------------------------*/

drivers/staging/emxx_udc/emxx_udc.h line 16

Quoted 5 lines
drivers/staging/emxx_udc/emxx_udc.h +0 -5
-/*----------------- Default undef */
-#if FALSE
-#define DEBUG
-#define UDC_DEBUG_DUMP
-#endif

The reason this is here is to make it "easy" for a developer to enable debugging for the driver.

Quoted 7 lines

Now we should just rely on the in-kernel dynamic debugging support, so we should be able to get rid of this, but before you do that, you need to remove the use of those two #defines on the codebase.

So for now, please leave this as-is.

okay.

payal

thanks,

Quoted 3 lines

greg k-h