Browse Source

Staging: rtl8192u: Hoist assign from if

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Joe Perches 15 years ago
parent
commit
d10219fcae
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

+ 2 - 1
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

@@ -1713,7 +1713,8 @@ ieee80211_rx_auth_rq(struct ieee80211_device *ieee, struct sk_buff *skb)
 	//IEEE80211DMESG("Rx probe");
 	ieee->softmac_stats.rx_auth_rq++;
 
-	if ((status = auth_rq_parse(skb, dest))!= -1){
+	status = auth_rq_parse(skb, dest);
+	if (status != -1) {
 		ieee80211_resp_to_auth(ieee, status, dest);
 	}
 	//DMESG("Dest is "MACSTR, MAC2STR(dest));