diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-06-30 16:47:11 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-05 15:26:54 -0400 |
commit | 9928c7d1b1c5e3dcba04a10c7014c9f3319b1fbc (patch) | |
tree | 42790976776c8731ba63b1059647039bc26f04da /drivers/net/wireless/rtlwifi/rtl8192de/led.c | |
parent | f2e795ffae1c4127277ce25727d5ac097f91238c (diff) | |
download | blackbird-op-linux-9928c7d1b1c5e3dcba04a10c7014c9f3319b1fbc.tar.gz blackbird-op-linux-9928c7d1b1c5e3dcba04a10c7014c9f3319b1fbc.zip |
rtlwifi: rtl8192de: Remove comparison of boolean with true
Tests of a boolean against "true" are not needed as non-zero is sufficient..
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192de/led.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/led.c b/drivers/net/wireless/rtlwifi/rtl8192de/led.c index 719972c16fcc..f1552f4df658 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/led.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/led.c @@ -93,7 +93,7 @@ void rtl92de_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled) break; case LED_PIN_LED0: ledcfg &= 0xf0; - if (pcipriv->ledctl.led_opendrain == true) + if (pcipriv->ledctl.led_opendrain) rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg | BIT(1) | BIT(5) | BIT(6))); else |