rtlwifi/rtl8192de: remove redundant else if check
authorColin Ian King <colin.king@canonical.com>
Tue, 13 Jan 2015 14:07:34 +0000 (14:07 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 23 Jan 2015 17:30:45 +0000 (19:30 +0200)
The else if check condition checks for the opposite of the
if check, hence the else if check is redundant and can be
replaced with a simple else:

if (rtlpriv->rtlhal.macphymode == SINGLEMAC_SINGLEPHY) {
..
} else if (rtlpriv->rtlhal.macphymode != SINGLEMAC_SINGLEPHY) {
..
}

replaced with:

if (rtlpriv->rtlhal.macphymode == SINGLEMAC_SINGLEPHY) {
..
} else {
..
}

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192de/hw.c

index 280c3da42993dbd6154ba8c5ab9a6abbb5784d2d..01bcc2d218dc5d215a1f0e6125699a007d94b574 100644 (file)
@@ -546,7 +546,7 @@ static bool _rtl92de_llt_table_init(struct ieee80211_hw *hw)
                txpktbuf_bndy = 246;
                value8 = 0;
                value32 = 0x80bf0d29;
-       } else if (rtlpriv->rtlhal.macphymode != SINGLEMAC_SINGLEPHY) {
+       } else {
                maxPage = 127;
                txpktbuf_bndy = 123;
                value8 = 0;