Messages in this thread | | | Date | Sat, 18 Oct 2014 21:04:43 +0400 | From | Sergei Shtylyov <> | 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@gmail.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
| |