Thread (3 messages) flat view 3 messages, 3 authors, 2015-01-23

Re: rtlwifi/rtl8192de: remove redundant else if check

From: Kalle Valo <hidden>
Date: 2015-01-23 17:31:04
Also in: lkml, netdev

From: Colin Ian King <redacted>

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 <redacted>
Acked-by: Larry Finger <redacted>
Thanks, applied to wireless-drivers-next.git.

Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help