From: YAMANE Toshiaki <yamanetoshi@gmail.com>
To: Greg Kroah-Hartman <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, YAMANE Toshiaki <yamanetoshi@gmail.com>
Subject: [PATCH 5/8] staging/rtl8187se: Fix spacing coding style in ieee80211/ieee80211_softmac_wx.c
Date: Tue, 27 Nov 2012 21:09:31 +0900 [thread overview]
Message-ID: <1354018171-18271-1-git-send-email-yamanetoshi@gmail.com> (raw)
In-Reply-To: <1354018065-18134-1-git-send-email-yamanetoshi@gmail.com>
The following wanings fixed.
- WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
---
.../rtl8187se/ieee80211/ieee80211_softmac_wx.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c
index f06ed35..177ff58 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c
@@ -218,11 +218,11 @@ int ieee80211_wx_set_rate(struct ieee80211_device *ieee,
u32 target_rate = wrqu->bitrate.value;
//added by lizhaoming for auto mode
- if (target_rate == -1) {
+ if (target_rate == -1)
ieee->rate = 110;
- } else {
+ else
ieee->rate = target_rate/100000;
- }
+
//FIXME: we might want to limit rate also in management protocols.
return 0;
}
@@ -250,12 +250,10 @@ int ieee80211_wx_set_mode(struct ieee80211_device *ieee, struct iw_request_info
if (wrqu->mode == ieee->iw_mode)
goto out;
- if (wrqu->mode == IW_MODE_MONITOR) {
-
+ if (wrqu->mode == IW_MODE_MONITOR)
ieee->dev->type = ARPHRD_IEEE80211;
- } else {
+ else
ieee->dev->type = ARPHRD_ETHER;
- }
if (!ieee->proto_started) {
ieee->iw_mode = wrqu->mode;
--
1.7.9.5
next prev parent reply other threads:[~2012-11-27 12:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 12:07 [PATCH 1/8] staging/rtl8187se: Fix spacing coding style in ieee80211/ieee80211_softmac_wx.c YAMANE Toshiaki
2012-11-27 12:08 ` [PATCH 2/8] " YAMANE Toshiaki
2012-11-27 12:09 ` [PATCH 3/8] " YAMANE Toshiaki
2012-11-27 12:09 ` [PATCH 4/8] " YAMANE Toshiaki
2012-11-27 12:09 ` YAMANE Toshiaki [this message]
2012-11-27 12:09 ` [PATCH 6/8] " YAMANE Toshiaki
2012-11-27 12:10 ` [PATCH 7/8] " YAMANE Toshiaki
2012-11-27 12:10 ` [PATCH 8/8] staging/rtl8187se: Use netdev_ printks " YAMANE Toshiaki
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=1354018171-18271-1-git-send-email-yamanetoshi@gmail.com \
--to=yamanetoshi@gmail.com \
--cc=greg@kroah.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