summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8187se
diff options
context:
space:
mode:
authorYAMANE Toshiaki <yamanetoshi@gmail.com>2012-11-27 16:09:31 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-27 21:20:31 +0400
commit6ed84198fe05be243c67510961e574c3a9abe4d7 (patch)
tree99bb7c5962c21e91ce5228dbccfa9f43b4184a06 /drivers/staging/rtl8187se
parentf553a75843139f9cb0a44f063f90be097bf35741 (diff)
downloadlinux-6ed84198fe05be243c67510961e574c3a9abe4d7.tar.xz
staging/rtl8187se: Fix spacing coding style in ieee80211/ieee80211_softmac_wx.c
The following wanings fixed. - WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r--drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c12
1 files 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 f06ed3530422..177ff587ce6d 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;