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>
This commit is contained in:
Chaitanya Dhere 2015-06-02 06:20:55 +00:00 committed by Greg Kroah-Hartman
parent cfa6954ced
commit a4f649bdab
1 changed files with 2 additions and 4 deletions

View File

@ -1364,12 +1364,10 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
ieee->LinkDetectInfo.NumRecvDataInPeriod= 1; ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
} }
ieee->link_change(ieee->dev); ieee->link_change(ieee->dev);
if(ieee->is_silent_reset == 0){ if (!ieee->is_silent_reset) {
printk("============>normal associate\n"); printk("============>normal associate\n");
notify_wx_assoc_event(ieee); notify_wx_assoc_event(ieee);
} } else {
else if(ieee->is_silent_reset == 1)
{
printk("==================>silent reset associate\n"); printk("==================>silent reset associate\n");
ieee->is_silent_reset = false; ieee->is_silent_reset = false;
} }