From: Maxim Mikityanskiy Date: Tue, 13 Nov 2012 17:28:11 +0000 (+0200) Subject: staging: rtl8187se: Simplified function GetSupportedWirelessMode8185() X-Git-Tag: v3.8-rc1~178^2~530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4457a8e42a3cd71c06032e5ab05175f31d589ec;p=profile%2Fivi%2Fkernel-x86-ivi.git staging: rtl8187se: Simplified function GetSupportedWirelessMode8185() Removed unnecessary variable in GetSupportedWirelessMode8185() and shortened its code Signed-off-by: Maxim Mikityanskiy Signed-off-by: Greg Kroah-Hartman --- 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,