From: Teodora Baluta Date: Tue, 5 Nov 2013 16:36:47 +0000 (+0200) Subject: staging: lustre: remove initialisation of static variable X-Git-Tag: v3.14-rc1~13^2~783^2~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06fcedc8ea5df80c7a6d7940d6ec97056aff2de2;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: Lisa Nguyen Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/libcfs/nidstrings.c b/drivers/staging/lustre/lustre/libcfs/nidstrings.c index 790c513..732ae55 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;