mirror of https://gitee.com/openkylin/linux.git
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: Colin Ian King <colin.king@canonical.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
3a939a6712
commit
59b23ebd7f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue