Commit 2ee4c3dc authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Greg Kroah-Hartman

staging: rtl8192u: remove unneeded bool

bool Reval is set to match the value of bHalfWirelessN24GMode just to
this. The value can be returned directly. Removing uneeded bool.
Signed-off-by: default avatarLuis de Bethencourt <luis@debethencourt.com>
Suggested-by: default avatarJoe Perches <joe@perches.com>
Suggested-by: default avatarFranks Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9bd549a
...@@ -2043,16 +2043,9 @@ static bool GetNmodeSupportBySecCfg8192(struct net_device *dev) ...@@ -2043,16 +2043,9 @@ static bool GetNmodeSupportBySecCfg8192(struct net_device *dev)
static bool GetHalfNmodeSupportByAPs819xUsb(struct net_device *dev) static bool GetHalfNmodeSupportByAPs819xUsb(struct net_device *dev)
{ {
bool Reval;
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
struct ieee80211_device *ieee = priv->ieee80211;
if (ieee->bHalfWirelessN24GMode)
Reval = true;
else
Reval = false;
return Reval; return priv->ieee80211->bHalfWirelessN24GMode;
} }
static void rtl8192_refresh_supportrate(struct r8192_priv *priv) static void rtl8192_refresh_supportrate(struct r8192_priv *priv)
......
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