cifs: eliminate cifsERROR variable
Subsystems (2)
PATCH 1/1 cifs: eliminate cifsERROR variable
It's always set to "1" and there's no way to change it to anything else.
Signed-off-by Jeff Layton <[email protected]>
--- fs/cifs/cifs_debug.h | 6 +----- fs/cifs/cifsfs.c | 1 - 2 files changed, 1 insertion(+), 6 deletions(-)
fs/cifs/cifs_debug.h +1 -5
@@ -37,7 +37,6 @@ void dump_smb(void *, int);#define CIFS_TIMER 0x04extern int cifsFYI; -extern int cifsERROR;/* * debug ON
@@ -64,10 +63,7 @@ do { \/* error event message: e.g., i/o error */ #define cifserror (fmt, ...) \ -do { \ - if (cifsERROR) \ - printk(KERN_ERR "CIFS VFS: " fmt "\n", ##__VA_ARGS__); \ -} while (0) + printk(KERN_ERR "CIFS VFS: " fmt "\n", ##__VA_ARGS__); \#define cERROR (set, fmt, ...) \ do { \
fs/cifs/cifsfs.c +0 -1
@@ -54,7 +54,6 @@#endif int cifsFYI =0 ; -int cifsERROR =1 ;int traceSMB =0 ;bool enable_oplocks = true;unsigned int linuxExtEnabled =1 ;
Signature · 1 line
1.7.11.7