Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59b23ebd authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo
Browse files

rtlwifi/rtl8192de: remove redundant else if check



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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 3a939a67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;