[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54429DAB.4060906@cogentembedded.com>
Date: Sat, 18 Oct 2014 21:04:43 +0400
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Balavasu <kp.balavasu@...il.com>, netdev@...r.kernel.org
CC: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0
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@...il.com>
> ---
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists