Skip to content

Commit

Permalink
cifs: eliminate cifsERROR variable
Browse files Browse the repository at this point in the history
It's always set to "1" and there's no way to change it to anything else.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Jeff Layton authored and Steve French committed Dec 20, 2012
1 parent 2f2591a commit 9acbd26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions fs/cifs/cifs_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void dump_smb(void *, int);
#define CIFS_TIMER 0x04

extern int cifsFYI;
extern int cifsERROR;

/*
* debug ON
Expand All @@ -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 { \
Expand Down
1 change: 0 additions & 1 deletion fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#endif

int cifsFYI = 0;
int cifsERROR = 1;
int traceSMB = 0;
bool enable_oplocks = true;
unsigned int linuxExtEnabled = 1;
Expand Down

0 comments on commit 9acbd26

Please sign in to comment.