netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Paul McQuade <paulmcquad@gmail.com>
Cc: sgruszka@redhat.com, helmut.schaa@googlemail.com,
	kvalo@codeaurora.org, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: wireless: rt2x00: statics code style
Date: Sun, 18 Oct 2015 16:16:21 +0300	[thread overview]
Message-ID: <56239BA5.9080806@cogentembedded.com> (raw)
In-Reply-To: <1445113533-28116-1-git-send-email-paulmcquad@gmail.com>

Hello.

On 10/17/2015 11:25 PM, Paul McQuade wrote:

> Do not initialise statics to 0 or NULL
> Also use tabs where possible
>
> Signed-off-by: Paul McQuade <paulmcquad@gmail.com>
> ---
>   drivers/net/wireless/rt2x00/rt61pci.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
> index c0e730e..53bd23d 100644
> --- a/drivers/net/wireless/rt2x00/rt61pci.c
> +++ b/drivers/net/wireless/rt2x00/rt61pci.c
> @@ -39,7 +39,7 @@
>   /*
>    * Allow hardware encryption to be disabled.
>    */
> -static bool modparam_nohwcrypt = false;
> +static bool modparam_nohwcrypt;
>   module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
>   MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
>
> @@ -1388,7 +1388,7 @@ static bool rt61pci_get_entry_state(struct queue_entry *entry)
>   		rt2x00_desc_read(entry_priv->desc, 0, &word);
>
>   		return (rt2x00_get_field32(word, TXD_W0_OWNER_NIC) ||
> -		        rt2x00_get_field32(word, TXD_W0_VALID));
> +		rt2x00_get_field32(word, TXD_W0_VALID));

    This line should indented more, like it was before. And the outer parens 
aren't needed.

MBR, Sergei

      reply	other threads:[~2015-10-18 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-17 20:25 [PATCH] net: wireless: rt2x00: statics code style Paul McQuade
2015-10-18 13:16 ` Sergei Shtylyov [this message]

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=56239BA5.9080806@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=helmut.schaa@googlemail.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paulmcquad@gmail.com \
    --cc=sgruszka@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).