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

From: Sergei Shtylyov <[email-masked]>
Date: Sat, 18 Oct 2014 21:04:43 +0400

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 <[email-masked]>
> ---
>   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