Staging: lustre: Fix initialisation of statics to NULL or 0
authorRashika Kheria <rashika.kheria@gmail.com>
Fri, 25 Oct 2013 18:54:03 +0000 (00:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2013 03:34:53 +0000 (20:34 -0700)
This patch fixes the following checkpatch.pl error in
lnet/lnet/config.c:
ERROR: do not initialise statics to 0 or NULL

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/config.c

index 6328a0e2eb2ab2b7f729777ae6722429f85dcd4b..de323f779db871435ba96c7f7cb73c06112d24c8 100644 (file)
@@ -43,7 +43,7 @@ typedef struct {                          /* tmp struct for parsing routes */
        char           ltb_text[0];     /* text buffer */
 } lnet_text_buf_t;
 
-static int lnet_tbnob = 0;                     /* track text buf allocation */
+static int lnet_tbnob;                 /* track text buf allocation */
 #define LNET_MAX_TEXTBUF_NOB     (64<<10)      /* bound allocation */
 #define LNET_SINGLE_TEXTBUF_NOB  (4<<10)