Skip to contentSkip to conversation

staging: dgnc: remove unused macro definition

PATCH In review Aastha Gupta 2 participants 2 messages Sep 16, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgnc: remove unused macro definition

This patch removes unused macro definition in dgnc_driver.h

---
 drivers/staging/dgnc/dgnc_driver.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/dgnc/dgnc_driver.h +0 -1
index d69d9c0..a19427b 100644
@@ -213,7 +213,6 @@ struct dgnc_board {
 #define UN_BUSY		0x0008		/* Some work this channel */
 #define UN_BREAKI	0x0010		/* Input break received	*/
 #define UN_PWAIT	0x0020		/* Printer waiting for terminal	*/
-#define UN_TIME		0x0040		/* Waiting on time */
 #define UN_EMPTY	0x0080		/* Waiting output queue empty */
 #define UN_LOW		0x0100		/* Waiting output low water mark*/
 #define UN_EXCL_OPEN	0x0200		/* Open for exclusive use */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Aastha Gupta

This patch removes unused macro definition in dgnc_driver.h

---
 drivers/staging/dgnc/dgnc_driver.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/dgnc/dgnc_driver.h +0 -0
index d69d9c0..a19427b 100644

drivers/staging/dgnc/dgnc_driver.h struct dgnc_board { · line 218

Quoted 7 lines
drivers/staging/dgnc/dgnc_driver.h +0 -1
@@ -213,7 +213,6 @@ struct dgnc_board {
 #define UN_BUSY		0x0008		/* Some work this channel */
 #define UN_BREAKI	0x0010		/* Input break received	*/
 #define UN_PWAIT	0x0020		/* Printer waiting for terminal	*/
-#define UN_TIME		0x0040		/* Waiting on time */
 #define UN_EMPTY	0x0080		/* Waiting output queue empty */
 #define UN_LOW		0x0100		/* Waiting output low water mark*/
 #define UN_EXCL_OPEN	0x0200		/* Open for exclusive use */

I don't think this is a good idea. Even if the macro is not used, it does show what that particular bit is used for.

It's fine to remove macros that are somehow more freestanding.

julia