aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/pci.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-19 08:56:45 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-19 22:27:29 -0500
commit3db1cd5c05f35fb43eb134df6f321de4e63141f2 (patch)
tree960039f3f4f0a524b37e94434624da154859bc64 /drivers/net/wireless/rtlwifi/pci.c
parenta8e510f682fe6d7671c11887e07c55f86caaf3c1 (diff)
net: fix assignment of 0/1 to bool variables.
DaveM said: Please, this kind of stuff rots forever and not using bool properly drives me crazy. Joe Perches <joe@perches.com> gave me the spatch script: @@ bool b; @@ -b = 0 +b = false @@ bool b; @@ -b = 1 +b = true I merely installed coccinelle, read the documentation and took credit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r--drivers/net/wireless/rtlwifi/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c
index 0d4d242849b4..39e0907a3c4e 100644
--- a/drivers/net/wireless/rtlwifi/pci.c
+++ b/drivers/net/wireless/rtlwifi/pci.c
@@ -78,7 +78,7 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw)
78 u8 init_aspm; 78 u8 init_aspm;
79 79
80 ppsc->reg_rfps_level = 0; 80 ppsc->reg_rfps_level = 0;
81 ppsc->support_aspm = 0; 81 ppsc->support_aspm = false;
82 82
83 /*Update PCI ASPM setting */ 83 /*Update PCI ASPM setting */
84 ppsc->const_amdpci_aspm = rtlpci->const_amdpci_aspm; 84 ppsc->const_amdpci_aspm = rtlpci->const_amdpci_aspm;
@@ -570,9 +570,9 @@ static void _rtl_pci_tx_isr(struct ieee80211_hw *hw, int prio)
570 if (ieee80211_is_nullfunc(fc)) { 570 if (ieee80211_is_nullfunc(fc)) {
571 if (ieee80211_has_pm(fc)) { 571 if (ieee80211_has_pm(fc)) {
572 rtlpriv->mac80211.offchan_delay = true; 572 rtlpriv->mac80211.offchan_delay = true;
573 rtlpriv->psc.state_inap = 1; 573 rtlpriv->psc.state_inap = true;
574 } else { 574 } else {
575 rtlpriv->psc.state_inap = 0; 575 rtlpriv->psc.state_inap = false;
576 } 576 }
577 } 577 }
578 578