public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Jakub Sitnicki <jsitnicki@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Larry Finger <Larry.Finger@lwfinger.net>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8188eu: kill unused hal_data_8188e::fw_ractrl flag
Date: Thu, 18 Jun 2015 14:00:18 +0530	[thread overview]
Message-ID: <20150618083018.GD11984@sudip-PC> (raw)
In-Reply-To: <1434609119-19680-1-git-send-email-jsitnicki@gmail.com>

On Thu, Jun 18, 2015 at 08:31:59AM +0200, Jakub Sitnicki wrote:
> Flag is never set. Remove it and the code that is dead because of it.
> 
> Signed-off-by: Jakub Sitnicki <jsitnicki@gmail.com>
> ---
<snip>
> 
> diff --git a/drivers/staging/rtl8188eu/hal/odm.c b/drivers/staging/rtl8188eu/hal/odm.c
> index 28b5e7b..710fdc3 100644
> --- a/drivers/staging/rtl8188eu/hal/odm.c
> +++ b/drivers/staging/rtl8188eu/hal/odm.c
> @@ -1170,13 +1170,10 @@ void odm_RSSIMonitorCheckCE(struct odm_dm_struct *pDM_Odm)
>  	}
>  
>  	for (i = 0; i < sta_cnt; i++) {
> -		if (PWDB_rssi[i] != (0)) {
> -			if (pHalData->fw_ractrl) {
> -				/*  Report every sta's RSSI to FW */
> -			} else {
> -				ODM_RA_SetRSSI_8188E(
> -				&(pHalData->odmpriv), (PWDB_rssi[i]&0xFF), (u8)((PWDB_rssi[i]>>16) & 0xFF));
> -			}
> +		if (PWDB_rssi[i] != 0) {
> +			ODM_RA_SetRSSI_8188E(&pHalData->odmpriv,
> +					     PWDB_rssi[i] & 0xFF,
> +					     (PWDB_rssi[i] >> 16) & 0xFF);
and you are also removing an extra unneeded () and a typecast.

regards
sudip

  reply	other threads:[~2015-06-18  8:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18  6:31 [PATCH] staging: rtl8188eu: kill unused hal_data_8188e::fw_ractrl flag Jakub Sitnicki
2015-06-18  8:30 ` Sudip Mukherjee [this message]
2015-06-18 16:56   ` Jakub Sitnicki
2015-06-22 14:44   ` Dan Carpenter
     [not found] ` <87a8um924g.fsf@frog.home>
2015-07-23 18:36   ` Greg Kroah-Hartman
2015-07-24 15:11     ` [PATCH RESEND] " Jakub Sitnicki

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=20150618083018.GD11984@sudip-PC \
    --to=sudipm.mukherjee@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jsitnicki@gmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox