[PATCH 2/2] 9p: remove redundant variable initialization in net/9p/mod.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <ericvh@...>, <rminnich@...>, <lucho@...>, <v9fs-developer@...>, <linux-kernel@...>
Date: Sunday, April 13, 2008 - 6:43 pm

There is no need to explicitly initialize the global variable
p9_debug_level by assigning zero value to it.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
---
 net/9p/mod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/9p/mod.c b/net/9p/mod.c
index c285aab..d3c5329 100644
--- a/net/9p/mod.c
+++ b/net/9p/mod.c
@@ -33,7 +33,7 @@
 #include <linux/list.h>
 
 #ifdef CONFIG_NET_9P_DEBUG
-unsigned int p9_debug_level = 0;	/* feature-rific global debug level  */
+unsigned int p9_debug_level;	/* feature-rific global debug level  */
 EXPORT_SYMBOL(p9_debug_level);
 module_param_named(debug, p9_debug_level, uint, 0);
 MODULE_PARM_DESC(debug, "9P debugging level");
-- 
1.5.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
9p: a couple of cleanup patches, Dmitri Vorobiev, (Sun Apr 13, 6:43 pm)
[PATCH 2/2] 9p: remove redundant variable initialization in ..., Dmitri Vorobiev, (Sun Apr 13, 6:43 pm)
[PATCH 1/2] 9p: four functions can become static, Dmitri Vorobiev, (Sun Apr 13, 6:43 pm)