diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-06-30 17:47:11 -0400 |
---|---|---|
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) |
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) | |||
93 | break; | 93 | break; |
94 | case LED_PIN_LED0: | 94 | case LED_PIN_LED0: |
95 | ledcfg &= 0xf0; | 95 | ledcfg &= 0xf0; |
96 | if (pcipriv->ledctl.led_opendrain == true) | 96 | if (pcipriv->ledctl.led_opendrain) |
97 | rtl_write_byte(rtlpriv, REG_LEDCFG2, | 97 | rtl_write_byte(rtlpriv, REG_LEDCFG2, |
98 | (ledcfg | BIT(1) | BIT(5) | BIT(6))); | 98 | (ledcfg | BIT(1) | BIT(5) | BIT(6))); |
99 | else | 99 | else |