staging: rtl8188eu: rewrite if tests - style
authorMichael Straube <straube.linux@gmail.com>
Wed, 3 Oct 2018 20:43:59 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 13:17:27 +0000 (15:17 +0200)
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 <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

index f03ac89..c694516 100644 (file)
@@ -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))) &&