Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0

From: Sergei Shtylyov
Date: Sat Oct 18 2014 - 13:05:13 EST


Hello.

On 10/18/2014 8:03 AM, Balavasu wrote:

This patch fixes the checkpatch.pl issue
Error:do not initialise statics to 0 or NULL

Signed-off-by: Balavasu <kp.balavasu@xxxxxxxxx>
---
drivers/staging/lustre/lnet/lnet/router.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/lustre/lnet/lnet/router.c b/drivers/staging/lustre/lnet/lnet/router.c
index b5b8fb5..b6edf1f 100644
--- a/drivers/staging/lustre/lnet/lnet/router.c
+++ b/drivers/staging/lustre/lnet/lnet/router.c
[...]
@@ -80,7 +80,7 @@ lnet_peer_buffer_credits(lnet_ni_t *ni)

#endif

-static int check_routers_before_use = 0;
+static int check_routers_before_use = {0};

Eh? I thought {} is only for arrays/structures...

[...]

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/