diff options
author | Ksenija Stanojevic <ksenija.stanojevic@gmail.com> | 2015-02-24 21:21:12 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-26 21:46:35 (GMT) |
commit | 352e579da8c9253b4cdf6d3135c6fe909a1b1f5e (patch) | |
tree | a51cc528398e029d8ce85990a3df0b56e44182a5 /drivers/staging/rtl8192u/r819xU_phy.c | |
parent | 72b16fe3f1a0f50db8dd9c80ea4eb7736f2a66ed (diff) | |
download | linux-352e579da8c9253b4cdf6d3135c6fe909a1b1f5e.tar.xz |
Staging: rtl8192u: Simplify if condition
Remove unnecessary TRUE statement. Field bMediaConnect is 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>
Diffstat (limited to 'drivers/staging/rtl8192u/r819xU_phy.c')
-rw-r--r-- | drivers/staging/rtl8192u/r819xU_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index 84a8a9a..3b2c954 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -1187,7 +1187,7 @@ bool rtl8192_SetRFPowerState(struct net_device *dev, /* Turn on RF we are still linked, which might happen when we quickly turn off and on HW RF. */ - if (pMgntInfo->bMediaConnect == TRUE) + if (pMgntInfo->bMediaConnect) Adapter->HalFunc.LedControlHandler(Adapter, LED_CTL_LINK); else /* Turn off LED if RF is not ON. */ |