All of lore.kernel.org
 help / color / mirror / Atom feed
From: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com,
	Woody Hung <Woody.Hung@mediatek.com>
Subject: Re: [PATCH 1/2] rt2x00pci: small 3290 changes cleanup
Date: Tue, 10 Jul 2012 12:59:12 +0300	[thread overview]
Message-ID: <4FFBFCF0.6030506@bluegiga.com> (raw)
In-Reply-To: <1341837708-22689-1-git-send-email-sgruszka@redhat.com>

On 07/09/2012 03:41 PM, Stanislaw Gruszka wrote:
> Fix indention and remove unnecessary brackets and compares.

Hi,

Otherwise looks ok but I have a one comment, see below.

> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> ---
>   drivers/net/wireless/rt2x00/rt2800pci.c |   11 +++++------
>   1 files changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
> index dd43612..bf0e71e 100644
> --- a/drivers/net/wireless/rt2x00/rt2800pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2800pci.c

<snip>

> @@ -1022,9 +1022,8 @@ static int rt2800_enable_wlan_rt3290(struct rt2x00_dev *rt2x00dev)
>   			rt2800_register_write(rt2x00dev, 0x58, 0x618);
>   			udelay(REGISTER_BUSY_DELAY);
>   			count++;
> -		} else {
> +		} else
>   			count = 0;
> -		}

I have understood that Linux CodingStyle requires braces on all else/if 
branches if any of those have more than one statement. So I would not 
remove braces here.

--
Veli-Pekka Peltola

  parent reply	other threads:[~2012-07-10 10:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 12:41 [PATCH 1/2] rt2x00pci: small 3290 changes cleanup Stanislaw Gruszka
2012-07-09 12:41 ` [PATCH 2/2] rt2800lib: merge same defines Stanislaw Gruszka
2012-07-10  6:34   ` Helmut Schaa
2012-07-10  6:33 ` [PATCH 1/2] rt2x00pci: small 3290 changes cleanup Helmut Schaa
2012-07-10  9:59 ` Veli-Pekka Peltola [this message]
2012-07-11 19:15   ` John W. Linville

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=4FFBFCF0.6030506@bluegiga.com \
    --to=veli-pekka.peltola@bluegiga.com \
    --cc=Woody.Hung@mediatek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=sgruszka@redhat.com \
    --cc=users@rt2x00.serialmonkey.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 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.