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)
commit59b23ebd7fd0af3facd174e96ee4dbc1494fa215
tree9677ec55a708b344cab994b97cffb55a8fc7a5f7
parent3a939a671225909c19b09bfcb6e4761109e913d9
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>
drivers/net/wireless/rtlwifi/rtl8192de/hw.c