Re: [PATCH v2] staging: rtl8192u: simplify conditional statement

2015-10-16 Thread Dan Carpenter
On Fri, Oct 16, 2015 at 02:26:31PM +0100, Luis de Bethencourt wrote: > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c > b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c > index c443e2e..f85e5ff 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c > +++

[PATCH v2] staging: rtl8192u: simplify conditional statement

2015-10-16 Thread Luis de Bethencourt
The code can be much cleaner and readable by simplifying the conditional statement. Only need to check if (ieee->state > IEEE80211_LINKED) and not >= because (ieee->state == IEEE80211_LINKED) is already checked a few lines above. Signed-off-by: Luis de Bethencourt --- Sorry for the typo in the