diff options
author | Maxim Mikityanskiy <maxtram95@gmail.com> | 2012-11-13 19:28:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-13 12:40:00 -0800 |
commit | d4457a8e42a3cd71c06032e5ab05175f31d589ec (patch) | |
tree | 0646eea41ed97bb061f37701b8949218166715af /drivers/staging/rtl8187se | |
parent | ddedb78aac0fe3fd59263a50c213ca07a4d16dec (diff) | |
download | op-kernel-dev-d4457a8e42a3cd71c06032e5ab05175f31d589ec.zip op-kernel-dev-d4457a8e42a3cd71c06032e5ab05175f31d589ec.tar.gz |
staging: rtl8187se: Simplified function GetSupportedWirelessMode8185()
Removed unnecessary variable in GetSupportedWirelessMode8185() and
shortened its code
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r-- | drivers/staging/rtl8187se/r8185b_init.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8187se/r8185b_init.c b/drivers/staging/rtl8187se/r8185b_init.c index 8fa42de..cf9bcd5 100644 --- a/drivers/staging/rtl8187se/r8185b_init.c +++ b/drivers/staging/rtl8187se/r8185b_init.c @@ -927,10 +927,7 @@ static void MacConfig_85BASIC(struct net_device *dev) u8 GetSupportedWirelessMode8185(struct net_device *dev) { - u8 btSupportedWirelessMode = 0; - - btSupportedWirelessMode = (WIRELESS_MODE_B | WIRELESS_MODE_G); - return btSupportedWirelessMode; + return WIRELESS_MODE_B | WIRELESS_MODE_G; } void ActUpdateChannelAccessSetting(struct net_device *dev, |