* [PATCH v3 1/2] staging: rtl8192u: Patch to modify if, else conditions
@ 2015-06-02 6:20 Dhere, Chaitanya (C.)
0 siblings, 0 replies; only message in thread
From: Dhere, Chaitanya (C.) @ 2015-06-02 6:20 UTC (permalink / raw)
To: gregkh@linuxfoundation.org
Cc: cristina.opriceana@gmail.com, hamohammed.sa@gmail.com,
gdonald@gmail.com, mahfouz.saif.elyazal@gmail.com,
benoit.taine@lip6.fr, paul.gortmaker@windriver.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
From: Chaitanya Dhere <cvijaydh@visteon.com>
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>
---
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index d2e8b12..1742e58 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;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-02 6:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 6:20 [PATCH v3 1/2] staging: rtl8192u: Patch to modify if, else conditions Dhere, Chaitanya (C.)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox