Skip to content

Commit

Permalink
staging: rtl8187se: Simplified function GetSupportedWirelessMode8185()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxim Mikityanskiy authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent ddedb78 commit d4457a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/rtl8187se/r8185b_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d4457a8

Please sign in to comment.