aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaitanya Dhere <cvijaydh@visteon.com>2015-06-02 06:20:55 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-08 13:34:05 -0700
commita4f649bdab2827c28db913b33bfc64bb82d147f6 (patch)
tree1b4adf413cab9201a0b293b14bec181cd1fb470a
parentstaging: wlan-ng: fix long line (diff)
staging: rtl8192u: Patch to modify if, else conditions
In this patch, the if, else conditions are modified to remove the unnecessary equality checks. This change was detected with help of coccinelle tool. Signed-off-by: Chaitanya Dhere <cvijaydh@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index d2e8b125b989..1742e58b1fb0 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -1364,12 +1364,10 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
}
ieee->link_change(ieee->dev);
- if(ieee->is_silent_reset == 0){
+ if (!ieee->is_silent_reset) {
printk("============>normal associate\n");
notify_wx_assoc_event(ieee);
- }
- else if(ieee->is_silent_reset == 1)
- {
+ } else {
printk("==================>silent reset associate\n");
ieee->is_silent_reset = false;
}