From: Michael Straube Date: Wed, 3 Oct 2018 20:43:59 +0000 (+0200) Subject: staging: rtl8188eu: rewrite if tests - style X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=304643019226b51b3dc77b603667c84400847010;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8188eu: rewrite if tests - style Rewrite if tests to clear a 'line over 80 characters' and 'Comparisons should place the constant on the right side of the test' checkpatch warning. Signed-off-by: Michael Straube Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index f03ac89736de..c6945164ee34 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -3957,7 +3957,7 @@ static void init_channel_list(struct adapter *padapter, if (!has_channel(channel_set, chanset_size, ch)) continue; - if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc)) + if (!padapter->registrypriv.ht_enable && o->inc == 8) continue; if ((0 == (padapter->registrypriv.cbw40_enable & BIT(1))) &&