aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8192de/led.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-06-30 17:47:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-05 15:26:54 -0400
commit9928c7d1b1c5e3dcba04a10c7014c9f3319b1fbc (patch)
tree42790976776c8731ba63b1059647039bc26f04da /drivers/net/wireless/rtlwifi/rtl8192de/led.c
parentf2e795ffae1c4127277ce25727d5ac097f91238c (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.c2
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