From: Jakub Sitnicki <jsitnicki@gmail.com>
To: Sudip Mukherjee <sudipm.mukherjee@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 18:56:52 +0200 [thread overview]
Message-ID: <87egl9550r.fsf@frog.home> (raw)
In-Reply-To: <20150618083018.GD11984@sudip-PC>
On Thu, Jun 18, 2015 at 10:30 AM CEST, Sudip Mukherjee <sudipm.mukherjee@gmail.com> wrote:
> 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.
True. I could have mentioned that in the commit message as it was
intentional. Thanks for reviewing it.
Regards,
Jakub
next prev parent reply other threads:[~2015-06-18 16:57 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
2015-06-18 16:56 ` Jakub Sitnicki [this message]
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=87egl9550r.fsf@frog.home \
--to=jsitnicki@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudipm.mukherjee@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 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.