All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Balavasu <kp.balavasu@gmail.com>, netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0
Date: Sat, 18 Oct 2014 21:04:43 +0400	[thread overview]
Message-ID: <54429DAB.4060906@cogentembedded.com> (raw)
In-Reply-To: <20141018040330.GA23492@vasu-Inspiron-3542>

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


  reply	other threads:[~2014-10-18 17:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18  4:03 [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0 Balavasu
2014-10-18 17:04 ` Sergei Shtylyov [this message]
2014-10-24 18:57   ` Dmitry Voytik
  -- strict thread matches above, loose matches on Subject: below --
2014-10-24 12:15 Balavasu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54429DAB.4060906@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=kp.balavasu@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.