staging: dgnc: remove unused macro definition
PATCH 1/1 staging: dgnc: remove unused macro definition
This patch removes unused macro definition in dgnc_driver.h
Signed-off-by Aastha Gupta <[email protected]>
--- drivers/staging/dgnc/dgnc_driver.h | 1 - 1 file changed, 1 deletion(-)
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 */
Signature · 1 line
2.7.4
Quoted 12 lines · Aastha Gupta
This patch removes unused macro definition in
dgnc_driver.hSigned-off-by Aastha Gupta <[email protected]>--- drivers/staging/dgnc/dgnc_driver.h | 1 - 1 file changed, 1 deletion(-)drivers/staging/dgnc/dgnc_driver.h +0
-0
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