public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Claudiu Beznea <claudiu.beznea@gmail.com>,
	florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org,
	luisbg@osg.samsung.com, sudipm.mukherjee@gmail.com,
	vthakkar1994@gmail.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8712: added few code enhancements in rtl8712_led.c
Date: Fri, 11 Mar 2016 12:19:30 -0600	[thread overview]
Message-ID: <56E30C32.6070102@lwfinger.net> (raw)
In-Reply-To: <1457560458-20704-1-git-send-email-claudiu.beznea@gmail.com>

On 03/09/2016 03:54 PM, Claudiu Beznea wrote:
> This patch tries to improve a part of the code from
> rtl8712_led.c by removing duplicates condition checks.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com>
> ---
>   drivers/staging/rtl8712/rtl8712_led.c | 31 +++++++++++++++----------------
>   1 file changed, 15 insertions(+), 16 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl8712_led.c b/drivers/staging/rtl8712/rtl8712_led.c
> index 9055827..aea6f2d 100644
> --- a/drivers/staging/rtl8712/rtl8712_led.c
> +++ b/drivers/staging/rtl8712/rtl8712_led.c
> @@ -221,11 +221,9 @@ static void SwLedBlink(struct LED_871x *pLed)
>   		break;
>   	case LED_BLINK_StartToBlink:
>   		if (check_fwstate(pmlmepriv, _FW_LINKED) &&
> -		    (pmlmepriv->fw_state & WIFI_STATION_STATE))
> -			bStopBlinking = true;
> -		if (check_fwstate(pmlmepriv, _FW_LINKED) &&
> -		    ((pmlmepriv->fw_state & WIFI_ADHOC_STATE) ||
> -		    (pmlmepriv->fw_state & WIFI_ADHOC_MASTER_STATE)))
> +			((pmlmepriv->fw_state & WIFI_STATION_STATE) ||
> +			 (pmlmepriv->fw_state & WIFI_ADHOC_STATE)	||
> +			 (pmlmepriv->fw_state & WIFI_ADHOC_MASTER_STATE)))

The above hunk messes up the alignment of the if statement. Observe the 
alignment of the stuff you are removing. It is correct.


Other than the alignment above, the rest of the patch is correct.

Larry

      reply	other threads:[~2016-03-11 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 21:54 [PATCH] staging: rtl8712: added few code enhancements in rtl8712_led.c Claudiu Beznea
2016-03-11 18:19 ` Larry Finger [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=56E30C32.6070102@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=claudiu.beznea@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=florian.c.schilhabel@googlemail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luisbg@osg.samsung.com \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=vthakkar1994@gmail.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