diff options
| author | Teodora Baluta <teobaluta@gmail.com> | 2013-11-05 18:36:47 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-10 09:46:32 -0800 |
| commit | 06fcedc8ea5df80c7a6d7940d6ec97056aff2de2 (patch) | |
| tree | 3d46bc597f21243fb3fa09254b154757d08413d6 | |
| parent | 0b2b3070f1f920ff9dae1ea26809944b6b1d46f2 (diff) | |
staging: lustre: remove initialisation of static variable
Fix the following checkpatch.pl error:
ERROR: do not initialise statics to 0 or NULL
+static int libcfs_nidstring_idx = 0;
Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/libcfs/nidstrings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/nidstrings.c b/drivers/staging/lustre/lustre/libcfs/nidstrings.c index 790c5130b74c..732ae5540bf4 100644 --- a/drivers/staging/lustre/lustre/libcfs/nidstrings.c +++ b/drivers/staging/lustre/lustre/libcfs/nidstrings.c @@ -56,7 +56,7 @@ */ static char libcfs_nidstrings[LNET_NIDSTR_COUNT][LNET_NIDSTR_SIZE]; -static int libcfs_nidstring_idx = 0; +static int libcfs_nidstring_idx; static spinlock_t libcfs_nidstring_lock; |
