]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18b7ebd9ced84976cc21499c673ac8a4d62da8d1
tree9677ec55a708b344cab994b97cffb55a8fc7a5f7
parentc8b12468ea772266f5820b96709ca294a2d1bbc0
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