Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: rtl8192u: Simplify if condition.

Remove unnecessary TRUE statement. Fields bDynamicTxLowPower and
bDynamicTxHighPower are of bool type so such change is correct.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ksenija Stanojevic and committed by
Greg Kroah-Hartman
72b16fe3 ff757c8a

+2 -2
+2 -2
drivers/staging/rtl8192u/r8190_rtl8256.c
··· 225 225 struct r8192_priv *priv = ieee80211_priv(dev); 226 226 TxAGC = powerlevel; 227 227 228 - if (priv->bDynamicTxLowPower == TRUE) { 228 + if (priv->bDynamicTxLowPower) { 229 229 if (priv->CustomerID == RT_CID_819x_Netcore) 230 230 TxAGC = 0x22; 231 231 else ··· 275 275 priv->Pwr_Track = writeVal_tmp; 276 276 } 277 277 278 - if (priv->bDynamicTxHighPower == TRUE) { 278 + if (priv->bDynamicTxHighPower) { 279 279 /*Add by Jacken 2008/03/06 280 280 *Emily, 20080613. Set low tx power for both MCS and legacy OFDM 281 281 */