Commit d4457a8e authored by Maxim Mikityanskiy's avatar Maxim Mikityanskiy Committed by Greg Kroah-Hartman

staging: rtl8187se: Simplified function GetSupportedWirelessMode8185()

Removed unnecessary variable in GetSupportedWirelessMode8185() and
shortened its code
Signed-off-by: default avatarMaxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ddedb78a
...@@ -927,10 +927,7 @@ static void MacConfig_85BASIC(struct net_device *dev) ...@@ -927,10 +927,7 @@ static void MacConfig_85BASIC(struct net_device *dev)
u8 GetSupportedWirelessMode8185(struct net_device *dev) u8 GetSupportedWirelessMode8185(struct net_device *dev)
{ {
u8 btSupportedWirelessMode = 0; return WIRELESS_MODE_B | WIRELESS_MODE_G;
btSupportedWirelessMode = (WIRELESS_MODE_B | WIRELESS_MODE_G);
return btSupportedWirelessMode;
} }
void ActUpdateChannelAccessSetting(struct net_device *dev, void ActUpdateChannelAccessSetting(struct net_device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment