]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8187se: Simplified function GetSupportedWirelessMode8185()
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Tue, 13 Nov 2012 17:28:11 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:40:00 +0000 (12:40 -0800)
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>
drivers/staging/rtl8187se/r8185b_init.c

index 8fa42de4fca1ff0ef152f53532aa5978434a0d5b..cf9bcd588c1dd90e0029701340d8f8dc7092ce10 100644 (file)
@@ -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,