aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c8
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c6
-rw-r--r--drivers/net/ethernet/dec/tulip/de4x5.c4
-rw-r--r--drivers/net/ethernet/intel/e1000/e1000_main.c10
-rw-r--r--drivers/net/ethernet/intel/e1000e/netdev.c24
-rw-r--r--drivers/net/ethernet/intel/ixgb/ixgb_main.c2
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_common.c2
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c2
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c12
-rw-r--r--drivers/net/ethernet/sfc/falcon.c2
-rw-r--r--drivers/net/ethernet/sfc/mtd.c6
-rw-r--r--drivers/net/ethernet/sfc/siena.c2
-rw-r--r--drivers/net/ethernet/tile/tilepro.c4
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_emaclite.c6
-rw-r--r--drivers/net/wimax/i2400m/tx.c8
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c4
-rw-r--r--drivers/net/wireless/ath/ath6kl/init.c2
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom_def.c2
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c4
-rw-r--r--drivers/net/wireless/b43/dma.c14
-rw-r--r--drivers/net/wireless/b43/leds.c16
-rw-r--r--drivers/net/wireless/b43/lo.c8
-rw-r--r--drivers/net/wireless/b43/main.c100
-rw-r--r--drivers/net/wireless/b43/phy_common.c8
-rw-r--r--drivers/net/wireless/b43/phy_g.c34
-rw-r--r--drivers/net/wireless/b43/phy_lp.c8
-rw-r--r--drivers/net/wireless/b43/phy_n.c4
-rw-r--r--drivers/net/wireless/b43/pio.c6
-rw-r--r--drivers/net/wireless/b43/xmit.c4
-rw-r--r--drivers/net/wireless/b43legacy/dma.c16
-rw-r--r--drivers/net/wireless/b43legacy/leds.c4
-rw-r--r--drivers/net/wireless/b43legacy/main.c64
-rw-r--r--drivers/net/wireless/b43legacy/radio.c20
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c4
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/dma.c4
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c2
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c32
-rw-r--r--drivers/net/wireless/iwmc3200wifi/main.c2
-rw-r--r--drivers/net/wireless/iwmc3200wifi/rx.c12
-rw-r--r--drivers/net/wireless/libertas/if_cs.c4
-rw-r--r--drivers/net/wireless/libertas_tf/main.c4
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c4
-rw-r--r--drivers/net/wireless/mwl8k.c8
-rw-r--r--drivers/net/wireless/rtlwifi/base.c2
-rw-r--r--drivers/net/wireless/rtlwifi/pci.c6
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192ce/sw.c4
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192cu/hw.c2
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192cu/sw.c4
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192de/sw.c4
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192se/sw.c4
50 files changed, 259 insertions, 259 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 00213968d210..076e02a415a0 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -6425,13 +6425,13 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
6425 bool hwbug = false; 6425 bool hwbug = false;
6426 6426
6427 if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8) 6427 if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8)
6428 hwbug = 1; 6428 hwbug = true;
6429 6429
6430 if (tg3_4g_overflow_test(map, len)) 6430 if (tg3_4g_overflow_test(map, len))
6431 hwbug = 1; 6431 hwbug = true;
6432 6432
6433 if (tg3_40bit_overflow_test(tp, map, len)) 6433 if (tg3_40bit_overflow_test(tp, map, len))
6434 hwbug = 1; 6434 hwbug = true;
6435 6435
6436 if (tp->dma_limit) { 6436 if (tp->dma_limit) {
6437 u32 prvidx = *entry; 6437 u32 prvidx = *entry;
@@ -6464,7 +6464,7 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
6464 *budget -= 1; 6464 *budget -= 1;
6465 *entry = NEXT_TX(*entry); 6465 *entry = NEXT_TX(*entry);
6466 } else { 6466 } else {
6467 hwbug = 1; 6467 hwbug = true;
6468 tnapi->tx_buffers[prvidx].fragmented = false; 6468 tnapi->tx_buffers[prvidx].fragmented = false;
6469 } 6469 }
6470 } 6470 }
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index aac3a3b710a0..197af04ff1ab 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -723,7 +723,7 @@ void
723bnad_cb_ethport_link_status(struct bnad *bnad, 723bnad_cb_ethport_link_status(struct bnad *bnad,
724 enum bna_link_status link_status) 724 enum bna_link_status link_status)
725{ 725{
726 bool link_up = 0; 726 bool link_up = false;
727 727
728 link_up = (link_status == BNA_LINK_UP) || (link_status == BNA_CEE_UP); 728 link_up = (link_status == BNA_LINK_UP) || (link_status == BNA_CEE_UP);
729 729
@@ -3190,7 +3190,7 @@ bnad_pci_init(struct bnad *bnad,
3190 goto disable_device; 3190 goto disable_device;
3191 if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) && 3191 if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
3192 !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) { 3192 !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
3193 *using_dac = 1; 3193 *using_dac = true;
3194 } else { 3194 } else {
3195 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); 3195 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
3196 if (err) { 3196 if (err) {
@@ -3199,7 +3199,7 @@ bnad_pci_init(struct bnad *bnad,
3199 if (err) 3199 if (err)
3200 goto release_regions; 3200 goto release_regions;
3201 } 3201 }
3202 *using_dac = 0; 3202 *using_dac = false;
3203 } 3203 }
3204 pci_set_master(pdev); 3204 pci_set_master(pdev);
3205 return 0; 3205 return 0;
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
index 3f5d3b964c28..4d71f5ae20c8 100644
--- a/drivers/net/ethernet/dec/tulip/de4x5.c
+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
@@ -5191,7 +5191,7 @@ de4x5_parse_params(struct net_device *dev)
5191 struct de4x5_private *lp = netdev_priv(dev); 5191 struct de4x5_private *lp = netdev_priv(dev);
5192 char *p, *q, t; 5192 char *p, *q, t;
5193 5193
5194 lp->params.fdx = 0; 5194 lp->params.fdx = false;
5195 lp->params.autosense = AUTO; 5195 lp->params.autosense = AUTO;
5196 5196
5197 if (args == NULL) return; 5197 if (args == NULL) return;
@@ -5201,7 +5201,7 @@ de4x5_parse_params(struct net_device *dev)
5201 t = *q; 5201 t = *q;
5202 *q = '\0'; 5202 *q = '\0';
5203 5203
5204 if (strstr(p, "fdx") || strstr(p, "FDX")) lp->params.fdx = 1; 5204 if (strstr(p, "fdx") || strstr(p, "FDX")) lp->params.fdx = true;
5205 5205
5206 if (strstr(p, "autosense") || strstr(p, "AUTOSENSE")) { 5206 if (strstr(p, "autosense") || strstr(p, "AUTOSENSE")) {
5207 if (strstr(p, "TP")) { 5207 if (strstr(p, "TP")) {
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index 053f01289eff..985d58943a06 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -1185,7 +1185,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
1185 if (global_quad_port_a != 0) 1185 if (global_quad_port_a != 0)
1186 adapter->eeprom_wol = 0; 1186 adapter->eeprom_wol = 0;
1187 else 1187 else
1188 adapter->quad_port_a = 1; 1188 adapter->quad_port_a = true;
1189 /* Reset for multiple quad port adapters */ 1189 /* Reset for multiple quad port adapters */
1190 if (++global_quad_port_a == 4) 1190 if (++global_quad_port_a == 4)
1191 global_quad_port_a = 0; 1191 global_quad_port_a = 0;
@@ -1679,7 +1679,7 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
1679 * need this to apply a workaround later in the send path. */ 1679 * need this to apply a workaround later in the send path. */
1680 if (hw->mac_type == e1000_82544 && 1680 if (hw->mac_type == e1000_82544 &&
1681 hw->bus_type == e1000_bus_type_pcix) 1681 hw->bus_type == e1000_bus_type_pcix)
1682 adapter->pcix_82544 = 1; 1682 adapter->pcix_82544 = true;
1683 1683
1684 ew32(TCTL, tctl); 1684 ew32(TCTL, tctl);
1685 1685
@@ -2002,7 +2002,7 @@ static void e1000_clean_tx_ring(struct e1000_adapter *adapter,
2002 2002
2003 tx_ring->next_to_use = 0; 2003 tx_ring->next_to_use = 0;
2004 tx_ring->next_to_clean = 0; 2004 tx_ring->next_to_clean = 0;
2005 tx_ring->last_tx_tso = 0; 2005 tx_ring->last_tx_tso = false;
2006 2006
2007 writel(0, hw->hw_addr + tx_ring->tdh); 2007 writel(0, hw->hw_addr + tx_ring->tdh);
2008 writel(0, hw->hw_addr + tx_ring->tdt); 2008 writel(0, hw->hw_addr + tx_ring->tdt);
@@ -2851,7 +2851,7 @@ static int e1000_tx_map(struct e1000_adapter *adapter,
2851 * DMA'd to the controller */ 2851 * DMA'd to the controller */
2852 if (!skb->data_len && tx_ring->last_tx_tso && 2852 if (!skb->data_len && tx_ring->last_tx_tso &&
2853 !skb_is_gso(skb)) { 2853 !skb_is_gso(skb)) {
2854 tx_ring->last_tx_tso = 0; 2854 tx_ring->last_tx_tso = false;
2855 size -= 4; 2855 size -= 4;
2856 } 2856 }
2857 2857
@@ -3219,7 +3219,7 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
3219 3219
3220 if (likely(tso)) { 3220 if (likely(tso)) {
3221 if (likely(hw->mac_type != e1000_82544)) 3221 if (likely(hw->mac_type != e1000_82544))
3222 tx_ring->last_tx_tso = 1; 3222 tx_ring->last_tx_tso = true;
3223 tx_flags |= E1000_TX_FLAGS_TSO; 3223 tx_flags |= E1000_TX_FLAGS_TSO;
3224 } else if (likely(e1000_tx_csum(adapter, tx_ring, skb))) 3224 } else if (likely(e1000_tx_csum(adapter, tx_ring, skb)))
3225 tx_flags |= E1000_TX_FLAGS_CSUM; 3225 tx_flags |= E1000_TX_FLAGS_CSUM;
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 90953b4d6bfa..3911401ed65d 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -859,7 +859,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
859 u32 length, staterr; 859 u32 length, staterr;
860 unsigned int i; 860 unsigned int i;
861 int cleaned_count = 0; 861 int cleaned_count = 0;
862 bool cleaned = 0; 862 bool cleaned = false;
863 unsigned int total_rx_bytes = 0, total_rx_packets = 0; 863 unsigned int total_rx_bytes = 0, total_rx_packets = 0;
864 864
865 i = rx_ring->next_to_clean; 865 i = rx_ring->next_to_clean;
@@ -888,7 +888,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
888 888
889 next_buffer = &rx_ring->buffer_info[i]; 889 next_buffer = &rx_ring->buffer_info[i];
890 890
891 cleaned = 1; 891 cleaned = true;
892 cleaned_count++; 892 cleaned_count++;
893 dma_unmap_single(&pdev->dev, 893 dma_unmap_single(&pdev->dev,
894 buffer_info->dma, 894 buffer_info->dma,
@@ -1157,7 +1157,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)
1157 * Detect a transmit hang in hardware, this serializes the 1157 * Detect a transmit hang in hardware, this serializes the
1158 * check with the clearing of time_stamp and movement of i 1158 * check with the clearing of time_stamp and movement of i
1159 */ 1159 */
1160 adapter->detect_tx_hung = 0; 1160 adapter->detect_tx_hung = false;
1161 if (tx_ring->buffer_info[i].time_stamp && 1161 if (tx_ring->buffer_info[i].time_stamp &&
1162 time_after(jiffies, tx_ring->buffer_info[i].time_stamp 1162 time_after(jiffies, tx_ring->buffer_info[i].time_stamp
1163 + (adapter->tx_timeout_factor * HZ)) && 1163 + (adapter->tx_timeout_factor * HZ)) &&
@@ -1192,7 +1192,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
1192 unsigned int i, j; 1192 unsigned int i, j;
1193 u32 length, staterr; 1193 u32 length, staterr;
1194 int cleaned_count = 0; 1194 int cleaned_count = 0;
1195 bool cleaned = 0; 1195 bool cleaned = false;
1196 unsigned int total_rx_bytes = 0, total_rx_packets = 0; 1196 unsigned int total_rx_bytes = 0, total_rx_packets = 0;
1197 1197
1198 i = rx_ring->next_to_clean; 1198 i = rx_ring->next_to_clean;
@@ -1218,7 +1218,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
1218 1218
1219 next_buffer = &rx_ring->buffer_info[i]; 1219 next_buffer = &rx_ring->buffer_info[i];
1220 1220
1221 cleaned = 1; 1221 cleaned = true;
1222 cleaned_count++; 1222 cleaned_count++;
1223 dma_unmap_single(&pdev->dev, buffer_info->dma, 1223 dma_unmap_single(&pdev->dev, buffer_info->dma,
1224 adapter->rx_ps_bsize0, DMA_FROM_DEVICE); 1224 adapter->rx_ps_bsize0, DMA_FROM_DEVICE);
@@ -4257,7 +4257,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
4257static bool e1000e_has_link(struct e1000_adapter *adapter) 4257static bool e1000e_has_link(struct e1000_adapter *adapter)
4258{ 4258{
4259 struct e1000_hw *hw = &adapter->hw; 4259 struct e1000_hw *hw = &adapter->hw;
4260 bool link_active = 0; 4260 bool link_active = false;
4261 s32 ret_val = 0; 4261 s32 ret_val = 0;
4262 4262
4263 /* 4263 /*
@@ -4272,7 +4272,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
4272 ret_val = hw->mac.ops.check_for_link(hw); 4272 ret_val = hw->mac.ops.check_for_link(hw);
4273 link_active = !hw->mac.get_link_status; 4273 link_active = !hw->mac.get_link_status;
4274 } else { 4274 } else {
4275 link_active = 1; 4275 link_active = true;
4276 } 4276 }
4277 break; 4277 break;
4278 case e1000_media_type_fiber: 4278 case e1000_media_type_fiber:
@@ -4371,7 +4371,7 @@ static void e1000_watchdog_task(struct work_struct *work)
4371 4371
4372 if (link) { 4372 if (link) {
4373 if (!netif_carrier_ok(netdev)) { 4373 if (!netif_carrier_ok(netdev)) {
4374 bool txb2b = 1; 4374 bool txb2b = true;
4375 4375
4376 /* Cancel scheduled suspend requests. */ 4376 /* Cancel scheduled suspend requests. */
4377 pm_runtime_resume(netdev->dev.parent); 4377 pm_runtime_resume(netdev->dev.parent);
@@ -4404,11 +4404,11 @@ static void e1000_watchdog_task(struct work_struct *work)
4404 adapter->tx_timeout_factor = 1; 4404 adapter->tx_timeout_factor = 1;
4405 switch (adapter->link_speed) { 4405 switch (adapter->link_speed) {
4406 case SPEED_10: 4406 case SPEED_10:
4407 txb2b = 0; 4407 txb2b = false;
4408 adapter->tx_timeout_factor = 16; 4408 adapter->tx_timeout_factor = 16;
4409 break; 4409 break;
4410 case SPEED_100: 4410 case SPEED_100:
4411 txb2b = 0; 4411 txb2b = false;
4412 adapter->tx_timeout_factor = 10; 4412 adapter->tx_timeout_factor = 10;
4413 break; 4413 break;
4414 } 4414 }
@@ -4544,7 +4544,7 @@ link_up:
4544 e1000e_flush_descriptors(adapter); 4544 e1000e_flush_descriptors(adapter);
4545 4545
4546 /* Force detection of hung controller every watchdog period */ 4546 /* Force detection of hung controller every watchdog period */
4547 adapter->detect_tx_hung = 1; 4547 adapter->detect_tx_hung = true;
4548 4548
4549 /* 4549 /*
4550 * With 82571 controllers, LAA may be overwritten due to controller 4550 * With 82571 controllers, LAA may be overwritten due to controller
@@ -6208,7 +6208,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
6208 6208
6209 /* Initialize link parameters. User can change them with ethtool */ 6209 /* Initialize link parameters. User can change them with ethtool */
6210 adapter->hw.mac.autoneg = 1; 6210 adapter->hw.mac.autoneg = 1;
6211 adapter->fc_autoneg = 1; 6211 adapter->fc_autoneg = true;
6212 adapter->hw.fc.requested_mode = e1000_fc_default; 6212 adapter->hw.fc.requested_mode = e1000_fc_default;
6213 adapter->hw.fc.current_mode = e1000_fc_default; 6213 adapter->hw.fc.current_mode = e1000_fc_default;
6214 adapter->hw.phy.autoneg_advertised = 0x2f; 6214 adapter->hw.phy.autoneg_advertised = 0x2f;
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c
index c573655f3307..9bd5faf64a85 100644
--- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c
+++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c
@@ -228,7 +228,7 @@ ixgb_up(struct ixgb_adapter *adapter)
228 if (IXGB_READ_REG(&adapter->hw, STATUS) & IXGB_STATUS_PCIX_MODE) { 228 if (IXGB_READ_REG(&adapter->hw, STATUS) & IXGB_STATUS_PCIX_MODE) {
229 err = pci_enable_msi(adapter->pdev); 229 err = pci_enable_msi(adapter->pdev);
230 if (!err) { 230 if (!err) {
231 adapter->have_msi = 1; 231 adapter->have_msi = true;
232 irq_flags = 0; 232 irq_flags = 0;
233 } 233 }
234 /* proceed to try to request regular interrupt */ 234 /* proceed to try to request regular interrupt */
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index f1365fef4ed2..bdf535aebb35 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -2599,7 +2599,7 @@ s32 ixgbe_enable_rx_dma_generic(struct ixgbe_hw *hw, u32 regval)
2599s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index) 2599s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index)
2600{ 2600{
2601 ixgbe_link_speed speed = 0; 2601 ixgbe_link_speed speed = 0;
2602 bool link_up = 0; 2602 bool link_up = false;
2603 u32 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC); 2603 u32 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC);
2604 u32 led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL); 2604 u32 led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
2605 2605
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 5d94ce1c0fc3..fcf8d4e6ba74 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -4023,7 +4023,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
4023 4023
4024 /* Mark all the VFs as inactive */ 4024 /* Mark all the VFs as inactive */
4025 for (i = 0 ; i < adapter->num_vfs; i++) 4025 for (i = 0 ; i < adapter->num_vfs; i++)
4026 adapter->vfinfo[i].clear_to_send = 0; 4026 adapter->vfinfo[i].clear_to_send = false;
4027 4027
4028 /* ping all the active vfs to let them know we are going down */ 4028 /* ping all the active vfs to let them know we are going down */
4029 ixgbe_ping_all_vfs(adapter); 4029 ixgbe_ping_all_vfs(adapter);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
index 9a56fd74e673..8b113e3f16f5 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
@@ -1214,7 +1214,7 @@ s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
1214 u32 max_retry = 10; 1214 u32 max_retry = 10;
1215 u32 retry = 0; 1215 u32 retry = 0;
1216 u16 swfw_mask = 0; 1216 u16 swfw_mask = 0;
1217 bool nack = 1; 1217 bool nack = true;
1218 *data = 0; 1218 *data = 0;
1219 1219
1220 if (IXGBE_READ_REG(hw, IXGBE_STATUS) & IXGBE_STATUS_LAN_ID_1) 1220 if (IXGBE_READ_REG(hw, IXGBE_STATUS) & IXGBE_STATUS_LAN_ID_1)
@@ -1421,7 +1421,7 @@ static void ixgbe_i2c_stop(struct ixgbe_hw *hw)
1421static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data) 1421static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data)
1422{ 1422{
1423 s32 i; 1423 s32 i;
1424 bool bit = 0; 1424 bool bit = false;
1425 1425
1426 for (i = 7; i >= 0; i--) { 1426 for (i = 7; i >= 0; i--) {
1427 ixgbe_clock_in_i2c_bit(hw, &bit); 1427 ixgbe_clock_in_i2c_bit(hw, &bit);
@@ -1443,7 +1443,7 @@ static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data)
1443 s32 status = 0; 1443 s32 status = 0;
1444 s32 i; 1444 s32 i;
1445 u32 i2cctl; 1445 u32 i2cctl;
1446 bool bit = 0; 1446 bool bit = false;
1447 1447
1448 for (i = 7; i >= 0; i--) { 1448 for (i = 7; i >= 0; i--) {
1449 bit = (data >> i) & 0x1; 1449 bit = (data >> i) & 0x1;
@@ -1473,7 +1473,7 @@ static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw)
1473 u32 i = 0; 1473 u32 i = 0;
1474 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL); 1474 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1475 u32 timeout = 10; 1475 u32 timeout = 10;
1476 bool ack = 1; 1476 bool ack = true;
1477 1477
1478 ixgbe_raise_i2c_clk(hw, &i2cctl); 1478 ixgbe_raise_i2c_clk(hw, &i2cctl);
1479 1479
@@ -1646,9 +1646,9 @@ static bool ixgbe_get_i2c_data(u32 *i2cctl)
1646 bool data; 1646 bool data;
1647 1647
1648 if (*i2cctl & IXGBE_I2C_DATA_IN) 1648 if (*i2cctl & IXGBE_I2C_DATA_IN)
1649 data = 1; 1649 data = true;
1650 else 1650 else
1651 data = 0; 1651 data = false;
1652 1652
1653 return data; 1653 return data;
1654} 1654}
diff --git a/drivers/net/ethernet/sfc/falcon.c b/drivers/net/ethernet/sfc/falcon.c
index 97b606b92e88..8ae1ebd35397 100644
--- a/drivers/net/ethernet/sfc/falcon.c
+++ b/drivers/net/ethernet/sfc/falcon.c
@@ -610,7 +610,7 @@ static void falcon_stats_complete(struct efx_nic *efx)
610 if (!nic_data->stats_pending) 610 if (!nic_data->stats_pending)
611 return; 611 return;
612 612
613 nic_data->stats_pending = 0; 613 nic_data->stats_pending = false;
614 if (*nic_data->stats_dma_done == FALCON_STATS_DONE) { 614 if (*nic_data->stats_dma_done == FALCON_STATS_DONE) {
615 rmb(); /* read the done flag before the stats */ 615 rmb(); /* read the done flag before the stats */
616 efx->mac_op->update_stats(efx); 616 efx->mac_op->update_stats(efx);
diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c
index b6304486f244..bc9dcd6b30d7 100644
--- a/drivers/net/ethernet/sfc/mtd.c
+++ b/drivers/net/ethernet/sfc/mtd.c
@@ -496,7 +496,7 @@ static int siena_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len)
496 rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); 496 rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type);
497 if (rc) 497 if (rc)
498 goto out; 498 goto out;
499 part->mcdi.updating = 1; 499 part->mcdi.updating = true;
500 } 500 }
501 501
502 /* The MCDI interface can in fact do multiple erase blocks at once; 502 /* The MCDI interface can in fact do multiple erase blocks at once;
@@ -528,7 +528,7 @@ static int siena_mtd_write(struct mtd_info *mtd, loff_t start,
528 rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); 528 rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type);
529 if (rc) 529 if (rc)
530 goto out; 530 goto out;
531 part->mcdi.updating = 1; 531 part->mcdi.updating = true;
532 } 532 }
533 533
534 while (offset < end) { 534 while (offset < end) {
@@ -553,7 +553,7 @@ static int siena_mtd_sync(struct mtd_info *mtd)
553 int rc = 0; 553 int rc = 0;
554 554
555 if (part->mcdi.updating) { 555 if (part->mcdi.updating) {
556 part->mcdi.updating = 0; 556 part->mcdi.updating = false;
557 rc = efx_mcdi_nvram_update_finish(efx, part->mcdi.nvram_type); 557 rc = efx_mcdi_nvram_update_finish(efx, part->mcdi.nvram_type);
558 } 558 }
559 559
diff --git a/drivers/net/ethernet/sfc/siena.c b/drivers/net/ethernet/sfc/siena.c
index cc2549cb7076..4d5d619feaa6 100644
--- a/drivers/net/ethernet/sfc/siena.c
+++ b/drivers/net/ethernet/sfc/siena.c
@@ -232,7 +232,7 @@ static int siena_probe_nvconfig(struct efx_nic *efx)
232static int siena_probe_nic(struct efx_nic *efx) 232static int siena_probe_nic(struct efx_nic *efx)
233{ 233{
234 struct siena_nic_data *nic_data; 234 struct siena_nic_data *nic_data;
235 bool already_attached = 0; 235 bool already_attached = false;
236 efx_oword_t reg; 236 efx_oword_t reg;
237 int rc; 237 int rc;
238 238
diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c
index 10826d8a2a2d..63774372edfa 100644
--- a/drivers/net/ethernet/tile/tilepro.c
+++ b/drivers/net/ethernet/tile/tilepro.c
@@ -1256,7 +1256,7 @@ static void tile_net_stop_aux(struct net_device *dev)
1256 sizeof(dummy), NETIO_IPP_STOP_SHIM_OFF) < 0) 1256 sizeof(dummy), NETIO_IPP_STOP_SHIM_OFF) < 0)
1257 panic("Failed to stop LIPP/LEPP!\n"); 1257 panic("Failed to stop LIPP/LEPP!\n");
1258 1258
1259 priv->partly_opened = 0; 1259 priv->partly_opened = false;
1260} 1260}
1261 1261
1262 1262
@@ -1507,7 +1507,7 @@ static int tile_net_open(struct net_device *dev)
1507 priv->network_cpus_count, priv->network_cpus_credits); 1507 priv->network_cpus_count, priv->network_cpus_credits);
1508#endif 1508#endif
1509 1509
1510 priv->partly_opened = 1; 1510 priv->partly_opened = true;
1511 1511
1512 } else { 1512 } else {
1513 /* FIXME: Is this possible? */ 1513 /* FIXME: Is this possible? */
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index dca65410bfc5..7f9f6e3a4c43 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -662,7 +662,7 @@ static void xemaclite_rx_handler(struct net_device *dev)
662 */ 662 */
663static irqreturn_t xemaclite_interrupt(int irq, void *dev_id) 663static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
664{ 664{
665 bool tx_complete = 0; 665 bool tx_complete = false;
666 struct net_device *dev = dev_id; 666 struct net_device *dev = dev_id;
667 struct net_local *lp = netdev_priv(dev); 667 struct net_local *lp = netdev_priv(dev);
668 void __iomem *base_addr = lp->base_addr; 668 void __iomem *base_addr = lp->base_addr;
@@ -683,7 +683,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
683 tx_status &= ~XEL_TSR_XMIT_ACTIVE_MASK; 683 tx_status &= ~XEL_TSR_XMIT_ACTIVE_MASK;
684 out_be32(base_addr + XEL_TSR_OFFSET, tx_status); 684 out_be32(base_addr + XEL_TSR_OFFSET, tx_status);
685 685
686 tx_complete = 1; 686 tx_complete = true;
687 } 687 }
688 688
689 /* Check if the Transmission for the second buffer is completed */ 689 /* Check if the Transmission for the second buffer is completed */
@@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
695 out_be32(base_addr + XEL_BUFFER_OFFSET + XEL_TSR_OFFSET, 695 out_be32(base_addr + XEL_BUFFER_OFFSET + XEL_TSR_OFFSET,
696 tx_status); 696 tx_status);
697 697
698 tx_complete = 1; 698 tx_complete = true;
699 } 699 }
700 700
701 /* If there was a Tx interrupt, call the Tx Handler */ 701 /* If there was a Tx interrupt, call the Tx Handler */
diff --git a/drivers/net/wimax/i2400m/tx.c b/drivers/net/wimax/i2400m/tx.c
index 4b9ecb20deec..f20886ade1cc 100644
--- a/drivers/net/wimax/i2400m/tx.c
+++ b/drivers/net/wimax/i2400m/tx.c
@@ -562,7 +562,7 @@ void i2400m_tx_new(struct i2400m *i2400m)
562{ 562{
563 struct device *dev = i2400m_dev(i2400m); 563 struct device *dev = i2400m_dev(i2400m);
564 struct i2400m_msg_hdr *tx_msg; 564 struct i2400m_msg_hdr *tx_msg;
565 bool try_head = 0; 565 bool try_head = false;
566 BUG_ON(i2400m->tx_msg != NULL); 566 BUG_ON(i2400m->tx_msg != NULL);
567 /* 567 /*
568 * In certain situations, TX queue might have enough space to 568 * In certain situations, TX queue might have enough space to
@@ -580,7 +580,7 @@ try_head:
580 else if (tx_msg == TAIL_FULL) { 580 else if (tx_msg == TAIL_FULL) {
581 i2400m_tx_skip_tail(i2400m); 581 i2400m_tx_skip_tail(i2400m);
582 d_printf(2, dev, "new TX message: tail full, trying head\n"); 582 d_printf(2, dev, "new TX message: tail full, trying head\n");
583 try_head = 1; 583 try_head = true;
584 goto try_head; 584 goto try_head;
585 } 585 }
586 memset(tx_msg, 0, I2400M_TX_PLD_SIZE); 586 memset(tx_msg, 0, I2400M_TX_PLD_SIZE);
@@ -720,7 +720,7 @@ int i2400m_tx(struct i2400m *i2400m, const void *buf, size_t buf_len,
720 unsigned long flags; 720 unsigned long flags;
721 size_t padded_len; 721 size_t padded_len;
722 void *ptr; 722 void *ptr;
723 bool try_head = 0; 723 bool try_head = false;
724 unsigned is_singleton = pl_type == I2400M_PT_RESET_WARM 724 unsigned is_singleton = pl_type == I2400M_PT_RESET_WARM
725 || pl_type == I2400M_PT_RESET_COLD; 725 || pl_type == I2400M_PT_RESET_COLD;
726 726
@@ -771,7 +771,7 @@ try_new:
771 d_printf(2, dev, "pl append: tail full\n"); 771 d_printf(2, dev, "pl append: tail full\n");
772 i2400m_tx_close(i2400m); 772 i2400m_tx_close(i2400m);
773 i2400m_tx_skip_tail(i2400m); 773 i2400m_tx_skip_tail(i2400m);
774 try_head = 1; 774 try_head = true;
775 goto try_new; 775 goto try_new;
776 } else if (ptr == NULL) { /* All full */ 776 } else if (ptr == NULL) { /* All full */
777 result = -ENOSPC; 777 result = -ENOSPC;
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 4aed3a3ab109..250db40b751d 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1159,7 +1159,7 @@ ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1159 */ 1159 */
1160 if (fast && (ah->ah_radio != AR5K_RF2413) && 1160 if (fast && (ah->ah_radio != AR5K_RF2413) &&
1161 (ah->ah_radio != AR5K_RF5413)) 1161 (ah->ah_radio != AR5K_RF5413))
1162 fast = 0; 1162 fast = false;
1163 1163
1164 /* Disable sleep clock operation 1164 /* Disable sleep clock operation
1165 * to avoid register access delay on certain 1165 * to avoid register access delay on certain
@@ -1185,7 +1185,7 @@ ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1185 if (ret && fast) { 1185 if (ret && fast) {
1186 ATH5K_DBG(ah, ATH5K_DEBUG_RESET, 1186 ATH5K_DBG(ah, ATH5K_DEBUG_RESET,
1187 "DMA didn't stop, falling back to normal reset\n"); 1187 "DMA didn't stop, falling back to normal reset\n");
1188 fast = 0; 1188 fast = false;
1189 /* Non fatal, just continue with 1189 /* Non fatal, just continue with
1190 * normal reset */ 1190 * normal reset */
1191 ret = 0; 1191 ret = 0;
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
index 30050af9d4c6..5acb4a4b93bf 100644
--- a/drivers/net/wireless/ath/ath6kl/init.c
+++ b/drivers/net/wireless/ath/ath6kl/init.c
@@ -361,7 +361,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
361 ath6kl_dbg(ATH6KL_DBG_TRC, "failed to request P2P " 361 ath6kl_dbg(ATH6KL_DBG_TRC, "failed to request P2P "
362 "capabilities (%d) - assuming P2P not " 362 "capabilities (%d) - assuming P2P not "
363 "supported\n", ret); 363 "supported\n", ret);
364 ar->p2p = 0; 364 ar->p2p = false;
365 } 365 }
366 } 366 }
367 367
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c
index 55a21d39167c..9681c099d0a5 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
@@ -385,7 +385,7 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
385 if ((ah->hw_version.devid == AR9280_DEVID_PCI) && 385 if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
386 ((eep->baseEepHeader.version & 0xff) > 0x0a) && 386 ((eep->baseEepHeader.version & 0xff) > 0x0a) &&
387 (eep->baseEepHeader.pwdclkind == 0)) 387 (eep->baseEepHeader.pwdclkind == 0))
388 ah->need_an_top2_fixup = 1; 388 ah->need_an_top2_fixup = true;
389 389
390 if ((common->bus_ops->ath_bus_type == ATH_USB) && 390 if ((common->bus_ops->ath_bus_type == ATH_USB) &&
391 (AR_SREV_9280(ah))) 391 (AR_SREV_9280(ah)))
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 23e80e63bca9..2622fcee8c96 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1929,7 +1929,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
1929 if (txq == sc->tx.txq_map[q] && 1929 if (txq == sc->tx.txq_map[q] &&
1930 ++txq->pending_frames > ATH_MAX_QDEPTH && !txq->stopped) { 1930 ++txq->pending_frames > ATH_MAX_QDEPTH && !txq->stopped) {
1931 ieee80211_stop_queue(sc->hw, q); 1931 ieee80211_stop_queue(sc->hw, q);
1932 txq->stopped = 1; 1932 txq->stopped = true;
1933 } 1933 }
1934 1934
1935 ath_tx_start_dma(sc, skb, txctl); 1935 ath_tx_start_dma(sc, skb, txctl);
@@ -1986,7 +1986,7 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
1986 1986
1987 if (txq->stopped && txq->pending_frames < ATH_MAX_QDEPTH) { 1987 if (txq->stopped && txq->pending_frames < ATH_MAX_QDEPTH) {
1988 ieee80211_wake_queue(sc->hw, q); 1988 ieee80211_wake_queue(sc->hw, q);
1989 txq->stopped = 0; 1989 txq->stopped = false;
1990 } 1990 }
1991 } 1991 }
1992 1992
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c
index 5e45604f0f5d..af23968520b6 100644
--- a/drivers/net/wireless/b43/dma.c
+++ b/drivers/net/wireless/b43/dma.c
@@ -890,7 +890,7 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev,
890 else 890 else
891 ring->ops = &dma32_ops; 891 ring->ops = &dma32_ops;
892 if (for_tx) { 892 if (for_tx) {
893 ring->tx = 1; 893 ring->tx = true;
894 ring->current_slot = -1; 894 ring->current_slot = -1;
895 } else { 895 } else {
896 if (ring->index == 0) { 896 if (ring->index == 0) {
@@ -1061,7 +1061,7 @@ void b43_dma_free(struct b43_wldev *dev)
1061static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask) 1061static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask)
1062{ 1062{
1063 u64 orig_mask = mask; 1063 u64 orig_mask = mask;
1064 bool fallback = 0; 1064 bool fallback = false;
1065 int err; 1065 int err;
1066 1066
1067 /* Try to set the DMA mask. If it fails, try falling back to a 1067 /* Try to set the DMA mask. If it fails, try falling back to a
@@ -1075,12 +1075,12 @@ static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask)
1075 } 1075 }
1076 if (mask == DMA_BIT_MASK(64)) { 1076 if (mask == DMA_BIT_MASK(64)) {
1077 mask = DMA_BIT_MASK(32); 1077 mask = DMA_BIT_MASK(32);
1078 fallback = 1; 1078 fallback = true;
1079 continue; 1079 continue;
1080 } 1080 }
1081 if (mask == DMA_BIT_MASK(32)) { 1081 if (mask == DMA_BIT_MASK(32)) {
1082 mask = DMA_BIT_MASK(30); 1082 mask = DMA_BIT_MASK(30);
1083 fallback = 1; 1083 fallback = true;
1084 continue; 1084 continue;
1085 } 1085 }
1086 b43err(dev->wl, "The machine/kernel does not support " 1086 b43err(dev->wl, "The machine/kernel does not support "
@@ -1307,7 +1307,7 @@ static int dma_tx_fragment(struct b43_dmaring *ring,
1307 memset(meta, 0, sizeof(*meta)); 1307 memset(meta, 0, sizeof(*meta));
1308 1308
1309 meta->skb = skb; 1309 meta->skb = skb;
1310 meta->is_last_fragment = 1; 1310 meta->is_last_fragment = true;
1311 priv_info->bouncebuffer = NULL; 1311 priv_info->bouncebuffer = NULL;
1312 1312
1313 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1); 1313 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1);
@@ -1466,7 +1466,7 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb)
1466 should_inject_overflow(ring)) { 1466 should_inject_overflow(ring)) {
1467 /* This TX ring is full. */ 1467 /* This TX ring is full. */
1468 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); 1468 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb));
1469 ring->stopped = 1; 1469 ring->stopped = true;
1470 if (b43_debug(dev, B43_DBG_DMAVERBOSE)) { 1470 if (b43_debug(dev, B43_DBG_DMAVERBOSE)) {
1471 b43dbg(dev->wl, "Stopped TX ring %d\n", ring->index); 1471 b43dbg(dev->wl, "Stopped TX ring %d\n", ring->index);
1472 } 1472 }
@@ -1585,7 +1585,7 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
1585 if (ring->stopped) { 1585 if (ring->stopped) {
1586 B43_WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME); 1586 B43_WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME);
1587 ieee80211_wake_queue(dev->wl->hw, ring->queue_prio); 1587 ieee80211_wake_queue(dev->wl->hw, ring->queue_prio);
1588 ring->stopped = 0; 1588 ring->stopped = false;
1589 if (b43_debug(dev, B43_DBG_DMAVERBOSE)) { 1589 if (b43_debug(dev, B43_DBG_DMAVERBOSE)) {
1590 b43dbg(dev->wl, "Woke up TX ring %d\n", ring->index); 1590 b43dbg(dev->wl, "Woke up TX ring %d\n", ring->index);
1591 } 1591 }
diff --git a/drivers/net/wireless/b43/leds.c b/drivers/net/wireless/b43/leds.c
index a38c1c6446ad..d79ab2a227e1 100644
--- a/drivers/net/wireless/b43/leds.c
+++ b/drivers/net/wireless/b43/leds.c
@@ -74,7 +74,7 @@ static void b43_led_update(struct b43_wldev *dev,
74 if (radio_enabled) 74 if (radio_enabled)
75 turn_on = atomic_read(&led->state) != LED_OFF; 75 turn_on = atomic_read(&led->state) != LED_OFF;
76 else 76 else
77 turn_on = 0; 77 turn_on = false;
78 if (turn_on == led->hw_state) 78 if (turn_on == led->hw_state)
79 return; 79 return;
80 led->hw_state = turn_on; 80 led->hw_state = turn_on;
@@ -225,11 +225,11 @@ static void b43_led_get_sprominfo(struct b43_wldev *dev,
225 if (sprom[led_index] == 0xFF) { 225 if (sprom[led_index] == 0xFF) {
226 /* There is no LED information in the SPROM 226 /* There is no LED information in the SPROM
227 * for this LED. Hardcode it here. */ 227 * for this LED. Hardcode it here. */
228 *activelow = 0; 228 *activelow = false;
229 switch (led_index) { 229 switch (led_index) {
230 case 0: 230 case 0:
231 *behaviour = B43_LED_ACTIVITY; 231 *behaviour = B43_LED_ACTIVITY;
232 *activelow = 1; 232 *activelow = true;
233 if (dev->dev->board_vendor == PCI_VENDOR_ID_COMPAQ) 233 if (dev->dev->board_vendor == PCI_VENDOR_ID_COMPAQ)
234 *behaviour = B43_LED_RADIO_ALL; 234 *behaviour = B43_LED_RADIO_ALL;
235 break; 235 break;
@@ -267,11 +267,11 @@ void b43_leds_init(struct b43_wldev *dev)
267 if (led->wl) { 267 if (led->wl) {
268 if (dev->phy.radio_on && b43_is_hw_radio_enabled(dev)) { 268 if (dev->phy.radio_on && b43_is_hw_radio_enabled(dev)) {
269 b43_led_turn_on(dev, led->index, led->activelow); 269 b43_led_turn_on(dev, led->index, led->activelow);
270 led->hw_state = 1; 270 led->hw_state = true;
271 atomic_set(&led->state, 1); 271 atomic_set(&led->state, 1);
272 } else { 272 } else {
273 b43_led_turn_off(dev, led->index, led->activelow); 273 b43_led_turn_off(dev, led->index, led->activelow);
274 led->hw_state = 0; 274 led->hw_state = false;
275 atomic_set(&led->state, 0); 275 atomic_set(&led->state, 0);
276 } 276 }
277 } 277 }
@@ -280,19 +280,19 @@ void b43_leds_init(struct b43_wldev *dev)
280 led = &dev->wl->leds.led_tx; 280 led = &dev->wl->leds.led_tx;
281 if (led->wl) { 281 if (led->wl) {
282 b43_led_turn_off(dev, led->index, led->activelow); 282 b43_led_turn_off(dev, led->index, led->activelow);
283 led->hw_state = 0; 283 led->hw_state = false;
284 atomic_set(&led->state, 0); 284 atomic_set(&led->state, 0);
285 } 285 }
286 led = &dev->wl->leds.led_rx; 286 led = &dev->wl->leds.led_rx;
287 if (led->wl) { 287 if (led->wl) {
288 b43_led_turn_off(dev, led->index, led->activelow); 288 b43_led_turn_off(dev, led->index, led->activelow);
289 led->hw_state = 0; 289 led->hw_state = false;
290 atomic_set(&led->state, 0); 290 atomic_set(&led->state, 0);
291 } 291 }
292 led = &dev->wl->leds.led_assoc; 292 led = &dev->wl->leds.led_assoc;
293 if (led->wl) { 293 if (led->wl) {
294 b43_led_turn_off(dev, led->index, led->activelow); 294 b43_led_turn_off(dev, led->index, led->activelow);
295 led->hw_state = 0; 295 led->hw_state = false;
296 atomic_set(&led->state, 0); 296 atomic_set(&led->state, 0);
297 } 297 }
298 298
diff --git a/drivers/net/wireless/b43/lo.c b/drivers/net/wireless/b43/lo.c
index 4c82d582a524..916123a3d74e 100644
--- a/drivers/net/wireless/b43/lo.c
+++ b/drivers/net/wireless/b43/lo.c
@@ -826,7 +826,7 @@ void b43_gphy_dc_lt_init(struct b43_wldev *dev, bool update_all)
826 const struct b43_rfatt *rfatt; 826 const struct b43_rfatt *rfatt;
827 const struct b43_bbatt *bbatt; 827 const struct b43_bbatt *bbatt;
828 u64 power_vector; 828 u64 power_vector;
829 bool table_changed = 0; 829 bool table_changed = false;
830 830
831 BUILD_BUG_ON(B43_DC_LT_SIZE != 32); 831 BUILD_BUG_ON(B43_DC_LT_SIZE != 32);
832 B43_WARN_ON(lo->rfatt_list.len * lo->bbatt_list.len > 64); 832 B43_WARN_ON(lo->rfatt_list.len * lo->bbatt_list.len > 64);
@@ -876,7 +876,7 @@ void b43_gphy_dc_lt_init(struct b43_wldev *dev, bool update_all)
876 lo->dc_lt[idx] = (lo->dc_lt[idx] & 0xFF00) 876 lo->dc_lt[idx] = (lo->dc_lt[idx] & 0xFF00)
877 | (val & 0x00FF); 877 | (val & 0x00FF);
878 } 878 }
879 table_changed = 1; 879 table_changed = true;
880 } 880 }
881 if (table_changed) { 881 if (table_changed) {
882 /* The table changed in memory. Update the hardware table. */ 882 /* The table changed in memory. Update the hardware table. */
@@ -938,7 +938,7 @@ void b43_lo_g_maintanance_work(struct b43_wldev *dev)
938 unsigned long now; 938 unsigned long now;
939 unsigned long expire; 939 unsigned long expire;
940 struct b43_lo_calib *cal, *tmp; 940 struct b43_lo_calib *cal, *tmp;
941 bool current_item_expired = 0; 941 bool current_item_expired = false;
942 bool hwpctl; 942 bool hwpctl;
943 943
944 if (!lo) 944 if (!lo)
@@ -968,7 +968,7 @@ void b43_lo_g_maintanance_work(struct b43_wldev *dev)
968 if (b43_compare_bbatt(&cal->bbatt, &gphy->bbatt) && 968 if (b43_compare_bbatt(&cal->bbatt, &gphy->bbatt) &&
969 b43_compare_rfatt(&cal->rfatt, &gphy->rfatt)) { 969 b43_compare_rfatt(&cal->rfatt, &gphy->rfatt)) {
970 B43_WARN_ON(current_item_expired); 970 B43_WARN_ON(current_item_expired);
971 current_item_expired = 1; 971 current_item_expired = true;
972 } 972 }
973 if (b43_debug(dev, B43_DBG_LO)) { 973 if (b43_debug(dev, B43_DBG_LO)) {
974 b43dbg(dev->wl, "LO: Item BB(%u), RF(%u,%u), " 974 b43dbg(dev->wl, "LO: Item BB(%u), RF(%u,%u), "
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 5634d9a9965b..c74f36f6e348 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -1122,17 +1122,17 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags)
1122 B43_WARN_ON((ps_flags & B43_PS_AWAKE) && (ps_flags & B43_PS_ASLEEP)); 1122 B43_WARN_ON((ps_flags & B43_PS_AWAKE) && (ps_flags & B43_PS_ASLEEP));
1123 1123
1124 if (ps_flags & B43_PS_ENABLED) { 1124 if (ps_flags & B43_PS_ENABLED) {
1125 hwps = 1; 1125 hwps = true;
1126 } else if (ps_flags & B43_PS_DISABLED) { 1126 } else if (ps_flags & B43_PS_DISABLED) {
1127 hwps = 0; 1127 hwps = false;
1128 } else { 1128 } else {
1129 //TODO: If powersave is not off and FIXME is not set and we are not in adhoc 1129 //TODO: If powersave is not off and FIXME is not set and we are not in adhoc
1130 // and thus is not an AP and we are associated, set bit 25 1130 // and thus is not an AP and we are associated, set bit 25
1131 } 1131 }
1132 if (ps_flags & B43_PS_AWAKE) { 1132 if (ps_flags & B43_PS_AWAKE) {
1133 awake = 1; 1133 awake = true;
1134 } else if (ps_flags & B43_PS_ASLEEP) { 1134 } else if (ps_flags & B43_PS_ASLEEP) {
1135 awake = 0; 1135 awake = false;
1136 } else { 1136 } else {
1137 //TODO: If the device is awake or this is an AP, or we are scanning, or FIXME, 1137 //TODO: If the device is awake or this is an AP, or we are scanning, or FIXME,
1138 // or we are associated, or FIXME, or the latest PS-Poll packet sent was 1138 // or we are associated, or FIXME, or the latest PS-Poll packet sent was
@@ -1140,8 +1140,8 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags)
1140 } 1140 }
1141 1141
1142/* FIXME: For now we force awake-on and hwps-off */ 1142/* FIXME: For now we force awake-on and hwps-off */
1143 hwps = 0; 1143 hwps = false;
1144 awake = 1; 1144 awake = true;
1145 1145
1146 macctl = b43_read32(dev, B43_MMIO_MACCTL); 1146 macctl = b43_read32(dev, B43_MMIO_MACCTL);
1147 if (hwps) 1147 if (hwps)
@@ -1339,7 +1339,7 @@ static void b43_calculate_link_quality(struct b43_wldev *dev)
1339 return; 1339 return;
1340 if (dev->noisecalc.calculation_running) 1340 if (dev->noisecalc.calculation_running)
1341 return; 1341 return;
1342 dev->noisecalc.calculation_running = 1; 1342 dev->noisecalc.calculation_running = true;
1343 dev->noisecalc.nr_samples = 0; 1343 dev->noisecalc.nr_samples = 0;
1344 1344
1345 b43_generate_noise_sample(dev); 1345 b43_generate_noise_sample(dev);
@@ -1408,7 +1408,7 @@ static void handle_irq_noise(struct b43_wldev *dev)
1408 average -= 48; 1408 average -= 48;
1409 1409
1410 dev->stats.link_noise = average; 1410 dev->stats.link_noise = average;
1411 dev->noisecalc.calculation_running = 0; 1411 dev->noisecalc.calculation_running = false;
1412 return; 1412 return;
1413 } 1413 }
1414generate_new: 1414generate_new:
@@ -1424,7 +1424,7 @@ static void handle_irq_tbtt_indication(struct b43_wldev *dev)
1424 b43_power_saving_ctl_bits(dev, 0); 1424 b43_power_saving_ctl_bits(dev, 0);
1425 } 1425 }
1426 if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC)) 1426 if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC))
1427 dev->dfq_valid = 1; 1427 dev->dfq_valid = true;
1428} 1428}
1429 1429
1430static void handle_irq_atim_end(struct b43_wldev *dev) 1430static void handle_irq_atim_end(struct b43_wldev *dev)
@@ -1433,7 +1433,7 @@ static void handle_irq_atim_end(struct b43_wldev *dev)
1433 b43_write32(dev, B43_MMIO_MACCMD, 1433 b43_write32(dev, B43_MMIO_MACCMD,
1434 b43_read32(dev, B43_MMIO_MACCMD) 1434 b43_read32(dev, B43_MMIO_MACCMD)
1435 | B43_MACCMD_DFQ_VALID); 1435 | B43_MACCMD_DFQ_VALID);
1436 dev->dfq_valid = 0; 1436 dev->dfq_valid = false;
1437 } 1437 }
1438} 1438}
1439 1439
@@ -1539,7 +1539,7 @@ static void b43_write_beacon_template(struct b43_wldev *dev,
1539 unsigned int i, len, variable_len; 1539 unsigned int i, len, variable_len;
1540 const struct ieee80211_mgmt *bcn; 1540 const struct ieee80211_mgmt *bcn;
1541 const u8 *ie; 1541 const u8 *ie;
1542 bool tim_found = 0; 1542 bool tim_found = false;
1543 unsigned int rate; 1543 unsigned int rate;
1544 u16 ctl; 1544 u16 ctl;
1545 int antenna; 1545 int antenna;
@@ -1588,7 +1588,7 @@ static void b43_write_beacon_template(struct b43_wldev *dev,
1588 /* A valid TIM is at least 4 bytes long. */ 1588 /* A valid TIM is at least 4 bytes long. */
1589 if (ie_len < 4) 1589 if (ie_len < 4)
1590 break; 1590 break;
1591 tim_found = 1; 1591 tim_found = true;
1592 1592
1593 tim_position = sizeof(struct b43_plcp_hdr6); 1593 tim_position = sizeof(struct b43_plcp_hdr6);
1594 tim_position += offsetof(struct ieee80211_mgmt, u.beacon.variable); 1594 tim_position += offsetof(struct ieee80211_mgmt, u.beacon.variable);
@@ -1625,7 +1625,7 @@ static void b43_upload_beacon0(struct b43_wldev *dev)
1625 if (wl->beacon0_uploaded) 1625 if (wl->beacon0_uploaded)
1626 return; 1626 return;
1627 b43_write_beacon_template(dev, 0x68, 0x18); 1627 b43_write_beacon_template(dev, 0x68, 0x18);
1628 wl->beacon0_uploaded = 1; 1628 wl->beacon0_uploaded = true;
1629} 1629}
1630 1630
1631static void b43_upload_beacon1(struct b43_wldev *dev) 1631static void b43_upload_beacon1(struct b43_wldev *dev)
@@ -1635,7 +1635,7 @@ static void b43_upload_beacon1(struct b43_wldev *dev)
1635 if (wl->beacon1_uploaded) 1635 if (wl->beacon1_uploaded)
1636 return; 1636 return;
1637 b43_write_beacon_template(dev, 0x468, 0x1A); 1637 b43_write_beacon_template(dev, 0x468, 0x1A);
1638 wl->beacon1_uploaded = 1; 1638 wl->beacon1_uploaded = true;
1639} 1639}
1640 1640
1641static void handle_irq_beacon(struct b43_wldev *dev) 1641static void handle_irq_beacon(struct b43_wldev *dev)
@@ -1667,7 +1667,7 @@ static void handle_irq_beacon(struct b43_wldev *dev)
1667 if (unlikely(wl->beacon_templates_virgin)) { 1667 if (unlikely(wl->beacon_templates_virgin)) {
1668 /* We never uploaded a beacon before. 1668 /* We never uploaded a beacon before.
1669 * Upload both templates now, but only mark one valid. */ 1669 * Upload both templates now, but only mark one valid. */
1670 wl->beacon_templates_virgin = 0; 1670 wl->beacon_templates_virgin = false;
1671 b43_upload_beacon0(dev); 1671 b43_upload_beacon0(dev);
1672 b43_upload_beacon1(dev); 1672 b43_upload_beacon1(dev);
1673 cmd = b43_read32(dev, B43_MMIO_MACCMD); 1673 cmd = b43_read32(dev, B43_MMIO_MACCMD);
@@ -1755,8 +1755,8 @@ static void b43_update_templates(struct b43_wl *wl)
1755 if (wl->current_beacon) 1755 if (wl->current_beacon)
1756 dev_kfree_skb_any(wl->current_beacon); 1756 dev_kfree_skb_any(wl->current_beacon);
1757 wl->current_beacon = beacon; 1757 wl->current_beacon = beacon;
1758 wl->beacon0_uploaded = 0; 1758 wl->beacon0_uploaded = false;
1759 wl->beacon1_uploaded = 0; 1759 wl->beacon1_uploaded = false;
1760 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger); 1760 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger);
1761} 1761}
1762 1762
@@ -1913,7 +1913,7 @@ static void b43_do_interrupt_thread(struct b43_wldev *dev)
1913 b43err(dev->wl, "This device does not support DMA " 1913 b43err(dev->wl, "This device does not support DMA "
1914 "on your system. It will now be switched to PIO.\n"); 1914 "on your system. It will now be switched to PIO.\n");
1915 /* Fall back to PIO transfers if we get fatal DMA errors! */ 1915 /* Fall back to PIO transfers if we get fatal DMA errors! */
1916 dev->use_pio = 1; 1916 dev->use_pio = true;
1917 b43_controller_restart(dev, "DMA error"); 1917 b43_controller_restart(dev, "DMA error");
1918 return; 1918 return;
1919 } 1919 }
@@ -2240,12 +2240,12 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx)
2240 filename = NULL; 2240 filename = NULL;
2241 else 2241 else
2242 goto err_no_pcm; 2242 goto err_no_pcm;
2243 fw->pcm_request_failed = 0; 2243 fw->pcm_request_failed = false;
2244 err = b43_do_request_fw(ctx, filename, &fw->pcm); 2244 err = b43_do_request_fw(ctx, filename, &fw->pcm);
2245 if (err == -ENOENT) { 2245 if (err == -ENOENT) {
2246 /* We did not find a PCM file? Not fatal, but 2246 /* We did not find a PCM file? Not fatal, but
2247 * core rev <= 10 must do without hwcrypto then. */ 2247 * core rev <= 10 must do without hwcrypto then. */
2248 fw->pcm_request_failed = 1; 2248 fw->pcm_request_failed = true;
2249 } else if (err) 2249 } else if (err)
2250 goto err_load; 2250 goto err_load;
2251 2251
@@ -2535,7 +2535,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2535 dev->wl->hw->queues = dev->wl->mac80211_initially_registered_queues; 2535 dev->wl->hw->queues = dev->wl->mac80211_initially_registered_queues;
2536 dev->qos_enabled = !!modparam_qos; 2536 dev->qos_enabled = !!modparam_qos;
2537 /* Default to firmware/hardware crypto acceleration. */ 2537 /* Default to firmware/hardware crypto acceleration. */
2538 dev->hwcrypto_enabled = 1; 2538 dev->hwcrypto_enabled = true;
2539 2539
2540 if (dev->fw.opensource) { 2540 if (dev->fw.opensource) {
2541 u16 fwcapa; 2541 u16 fwcapa;
@@ -2549,7 +2549,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2549 if (!(fwcapa & B43_FWCAPA_HWCRYPTO) || dev->fw.pcm_request_failed) { 2549 if (!(fwcapa & B43_FWCAPA_HWCRYPTO) || dev->fw.pcm_request_failed) {
2550 b43info(dev->wl, "Hardware crypto acceleration not supported by firmware\n"); 2550 b43info(dev->wl, "Hardware crypto acceleration not supported by firmware\n");
2551 /* Disable hardware crypto and fall back to software crypto. */ 2551 /* Disable hardware crypto and fall back to software crypto. */
2552 dev->hwcrypto_enabled = 0; 2552 dev->hwcrypto_enabled = false;
2553 } 2553 }
2554 if (!(fwcapa & B43_FWCAPA_QOS)) { 2554 if (!(fwcapa & B43_FWCAPA_QOS)) {
2555 b43info(dev->wl, "QoS not supported by firmware\n"); 2555 b43info(dev->wl, "QoS not supported by firmware\n");
@@ -2557,7 +2557,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2557 * ieee80211_unregister to make sure the networking core can 2557 * ieee80211_unregister to make sure the networking core can
2558 * properly free possible resources. */ 2558 * properly free possible resources. */
2559 dev->wl->hw->queues = 1; 2559 dev->wl->hw->queues = 1;
2560 dev->qos_enabled = 0; 2560 dev->qos_enabled = false;
2561 } 2561 }
2562 } else { 2562 } else {
2563 b43info(dev->wl, "Loading firmware version %u.%u " 2563 b43info(dev->wl, "Loading firmware version %u.%u "
@@ -3361,10 +3361,10 @@ static int b43_rng_init(struct b43_wl *wl)
3361 wl->rng.name = wl->rng_name; 3361 wl->rng.name = wl->rng_name;
3362 wl->rng.data_read = b43_rng_read; 3362 wl->rng.data_read = b43_rng_read;
3363 wl->rng.priv = (unsigned long)wl; 3363 wl->rng.priv = (unsigned long)wl;
3364 wl->rng_initialized = 1; 3364 wl->rng_initialized = true;
3365 err = hwrng_register(&wl->rng); 3365 err = hwrng_register(&wl->rng);
3366 if (err) { 3366 if (err) {
3367 wl->rng_initialized = 0; 3367 wl->rng_initialized = false;
3368 b43err(wl, "Failed to register the random " 3368 b43err(wl, "Failed to register the random "
3369 "number generator (%d)\n", err); 3369 "number generator (%d)\n", err);
3370 } 3370 }
@@ -3702,13 +3702,13 @@ static int b43_switch_band(struct b43_wl *wl, struct ieee80211_channel *chan)
3702 case IEEE80211_BAND_5GHZ: 3702 case IEEE80211_BAND_5GHZ:
3703 if (d->phy.supports_5ghz) { 3703 if (d->phy.supports_5ghz) {
3704 up_dev = d; 3704 up_dev = d;
3705 gmode = 0; 3705 gmode = false;
3706 } 3706 }
3707 break; 3707 break;
3708 case IEEE80211_BAND_2GHZ: 3708 case IEEE80211_BAND_2GHZ:
3709 if (d->phy.supports_2ghz) { 3709 if (d->phy.supports_2ghz) {
3710 up_dev = d; 3710 up_dev = d;
3711 gmode = 1; 3711 gmode = true;
3712 } 3712 }
3713 break; 3713 break;
3714 default: 3714 default:
@@ -4425,18 +4425,18 @@ static void setup_struct_phy_for_init(struct b43_wldev *dev,
4425 atomic_set(&phy->txerr_cnt, B43_PHY_TX_BADNESS_LIMIT); 4425 atomic_set(&phy->txerr_cnt, B43_PHY_TX_BADNESS_LIMIT);
4426 4426
4427#if B43_DEBUG 4427#if B43_DEBUG
4428 phy->phy_locked = 0; 4428 phy->phy_locked = false;
4429 phy->radio_locked = 0; 4429 phy->radio_locked = false;
4430#endif 4430#endif
4431} 4431}
4432 4432
4433static void setup_struct_wldev_for_init(struct b43_wldev *dev) 4433static void setup_struct_wldev_for_init(struct b43_wldev *dev)
4434{ 4434{
4435 dev->dfq_valid = 0; 4435 dev->dfq_valid = false;
4436 4436
4437 /* Assume the radio is enabled. If it's not enabled, the state will 4437 /* Assume the radio is enabled. If it's not enabled, the state will
4438 * immediately get fixed on the first periodic work run. */ 4438 * immediately get fixed on the first periodic work run. */
4439 dev->radio_hw_enable = 1; 4439 dev->radio_hw_enable = true;
4440 4440
4441 /* Stats */ 4441 /* Stats */
4442 memset(&dev->stats, 0, sizeof(dev->stats)); 4442 memset(&dev->stats, 0, sizeof(dev->stats));
@@ -4670,16 +4670,16 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
4670 4670
4671 if (b43_bus_host_is_pcmcia(dev->dev) || 4671 if (b43_bus_host_is_pcmcia(dev->dev) ||
4672 b43_bus_host_is_sdio(dev->dev)) { 4672 b43_bus_host_is_sdio(dev->dev)) {
4673 dev->__using_pio_transfers = 1; 4673 dev->__using_pio_transfers = true;
4674 err = b43_pio_init(dev); 4674 err = b43_pio_init(dev);
4675 } else if (dev->use_pio) { 4675 } else if (dev->use_pio) {
4676 b43warn(dev->wl, "Forced PIO by use_pio module parameter. " 4676 b43warn(dev->wl, "Forced PIO by use_pio module parameter. "
4677 "This should not be needed and will result in lower " 4677 "This should not be needed and will result in lower "
4678 "performance.\n"); 4678 "performance.\n");
4679 dev->__using_pio_transfers = 1; 4679 dev->__using_pio_transfers = true;
4680 err = b43_pio_init(dev); 4680 err = b43_pio_init(dev);
4681 } else { 4681 } else {
4682 dev->__using_pio_transfers = 0; 4682 dev->__using_pio_transfers = false;
4683 err = b43_dma_init(dev); 4683 err = b43_dma_init(dev);
4684 } 4684 }
4685 if (err) 4685 if (err)
@@ -4733,7 +4733,7 @@ static int b43_op_add_interface(struct ieee80211_hw *hw,
4733 b43dbg(wl, "Adding Interface type %d\n", vif->type); 4733 b43dbg(wl, "Adding Interface type %d\n", vif->type);
4734 4734
4735 dev = wl->current_dev; 4735 dev = wl->current_dev;
4736 wl->operating = 1; 4736 wl->operating = true;
4737 wl->vif = vif; 4737 wl->vif = vif;
4738 wl->if_type = vif->type; 4738 wl->if_type = vif->type;
4739 memcpy(wl->mac_addr, vif->addr, ETH_ALEN); 4739 memcpy(wl->mac_addr, vif->addr, ETH_ALEN);
@@ -4767,7 +4767,7 @@ static void b43_op_remove_interface(struct ieee80211_hw *hw,
4767 B43_WARN_ON(wl->vif != vif); 4767 B43_WARN_ON(wl->vif != vif);
4768 wl->vif = NULL; 4768 wl->vif = NULL;
4769 4769
4770 wl->operating = 0; 4770 wl->operating = false;
4771 4771
4772 b43_adjust_opmode(dev); 4772 b43_adjust_opmode(dev);
4773 memset(wl->mac_addr, 0, ETH_ALEN); 4773 memset(wl->mac_addr, 0, ETH_ALEN);
@@ -4789,12 +4789,12 @@ static int b43_op_start(struct ieee80211_hw *hw)
4789 memset(wl->bssid, 0, ETH_ALEN); 4789 memset(wl->bssid, 0, ETH_ALEN);
4790 memset(wl->mac_addr, 0, ETH_ALEN); 4790 memset(wl->mac_addr, 0, ETH_ALEN);
4791 wl->filter_flags = 0; 4791 wl->filter_flags = 0;
4792 wl->radiotap_enabled = 0; 4792 wl->radiotap_enabled = false;
4793 b43_qos_clear(wl); 4793 b43_qos_clear(wl);
4794 wl->beacon0_uploaded = 0; 4794 wl->beacon0_uploaded = false;
4795 wl->beacon1_uploaded = 0; 4795 wl->beacon1_uploaded = false;
4796 wl->beacon_templates_virgin = 1; 4796 wl->beacon_templates_virgin = true;
4797 wl->radio_enabled = 1; 4797 wl->radio_enabled = true;
4798 4798
4799 mutex_lock(&wl->mutex); 4799 mutex_lock(&wl->mutex);
4800 4800
@@ -4840,7 +4840,7 @@ static void b43_op_stop(struct ieee80211_hw *hw)
4840 goto out_unlock; 4840 goto out_unlock;
4841 } 4841 }
4842 b43_wireless_core_exit(dev); 4842 b43_wireless_core_exit(dev);
4843 wl->radio_enabled = 0; 4843 wl->radio_enabled = false;
4844 4844
4845out_unlock: 4845out_unlock:
4846 mutex_unlock(&wl->mutex); 4846 mutex_unlock(&wl->mutex);
@@ -5028,7 +5028,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5028 struct pci_dev *pdev = NULL; 5028 struct pci_dev *pdev = NULL;
5029 int err; 5029 int err;
5030 u32 tmp; 5030 u32 tmp;
5031 bool have_2ghz_phy = 0, have_5ghz_phy = 0; 5031 bool have_2ghz_phy = false, have_5ghz_phy = false;
5032 5032
5033 /* Do NOT do any device initialization here. 5033 /* Do NOT do any device initialization here.
5034 * Do it in wireless_core_init() instead. 5034 * Do it in wireless_core_init() instead.
@@ -5071,7 +5071,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5071 } 5071 }
5072 5072
5073 dev->phy.gmode = have_2ghz_phy; 5073 dev->phy.gmode = have_2ghz_phy;
5074 dev->phy.radio_on = 1; 5074 dev->phy.radio_on = true;
5075 b43_wireless_core_reset(dev, dev->phy.gmode); 5075 b43_wireless_core_reset(dev, dev->phy.gmode);
5076 5076
5077 err = b43_phy_versioning(dev); 5077 err = b43_phy_versioning(dev);
@@ -5082,11 +5082,11 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5082 (pdev->device != 0x4312 && 5082 (pdev->device != 0x4312 &&
5083 pdev->device != 0x4319 && pdev->device != 0x4324)) { 5083 pdev->device != 0x4319 && pdev->device != 0x4324)) {
5084 /* No multiband support. */ 5084 /* No multiband support. */
5085 have_2ghz_phy = 0; 5085 have_2ghz_phy = false;
5086 have_5ghz_phy = 0; 5086 have_5ghz_phy = false;
5087 switch (dev->phy.type) { 5087 switch (dev->phy.type) {
5088 case B43_PHYTYPE_A: 5088 case B43_PHYTYPE_A:
5089 have_5ghz_phy = 1; 5089 have_5ghz_phy = true;
5090 break; 5090 break;
5091 case B43_PHYTYPE_LP: //FIXME not always! 5091 case B43_PHYTYPE_LP: //FIXME not always!
5092#if 0 //FIXME enabling 5GHz causes a NULL pointer dereference 5092#if 0 //FIXME enabling 5GHz causes a NULL pointer dereference
@@ -5096,7 +5096,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5096 case B43_PHYTYPE_N: 5096 case B43_PHYTYPE_N:
5097 case B43_PHYTYPE_HT: 5097 case B43_PHYTYPE_HT:
5098 case B43_PHYTYPE_LCN: 5098 case B43_PHYTYPE_LCN:
5099 have_2ghz_phy = 1; 5099 have_2ghz_phy = true;
5100 break; 5100 break;
5101 default: 5101 default:
5102 B43_WARN_ON(1); 5102 B43_WARN_ON(1);
@@ -5112,8 +5112,8 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5112 /* FIXME: For now we disable the A-PHY on multi-PHY devices. */ 5112 /* FIXME: For now we disable the A-PHY on multi-PHY devices. */
5113 if (dev->phy.type != B43_PHYTYPE_N && 5113 if (dev->phy.type != B43_PHYTYPE_N &&
5114 dev->phy.type != B43_PHYTYPE_LP) { 5114 dev->phy.type != B43_PHYTYPE_LP) {
5115 have_2ghz_phy = 1; 5115 have_2ghz_phy = true;
5116 have_5ghz_phy = 0; 5116 have_5ghz_phy = false;
5117 } 5117 }
5118 } 5118 }
5119 5119
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c
index 3ea44bb03684..3f8883b14d9c 100644
--- a/drivers/net/wireless/b43/phy_common.c
+++ b/drivers/net/wireless/b43/phy_common.c
@@ -145,7 +145,7 @@ void b43_radio_lock(struct b43_wldev *dev)
145 145
146#if B43_DEBUG 146#if B43_DEBUG
147 B43_WARN_ON(dev->phy.radio_locked); 147 B43_WARN_ON(dev->phy.radio_locked);
148 dev->phy.radio_locked = 1; 148 dev->phy.radio_locked = true;
149#endif 149#endif
150 150
151 macctl = b43_read32(dev, B43_MMIO_MACCTL); 151 macctl = b43_read32(dev, B43_MMIO_MACCTL);
@@ -163,7 +163,7 @@ void b43_radio_unlock(struct b43_wldev *dev)
163 163
164#if B43_DEBUG 164#if B43_DEBUG
165 B43_WARN_ON(!dev->phy.radio_locked); 165 B43_WARN_ON(!dev->phy.radio_locked);
166 dev->phy.radio_locked = 0; 166 dev->phy.radio_locked = false;
167#endif 167#endif
168 168
169 /* Commit any write */ 169 /* Commit any write */
@@ -178,7 +178,7 @@ void b43_phy_lock(struct b43_wldev *dev)
178{ 178{
179#if B43_DEBUG 179#if B43_DEBUG
180 B43_WARN_ON(dev->phy.phy_locked); 180 B43_WARN_ON(dev->phy.phy_locked);
181 dev->phy.phy_locked = 1; 181 dev->phy.phy_locked = true;
182#endif 182#endif
183 B43_WARN_ON(dev->dev->core_rev < 3); 183 B43_WARN_ON(dev->dev->core_rev < 3);
184 184
@@ -190,7 +190,7 @@ void b43_phy_unlock(struct b43_wldev *dev)
190{ 190{
191#if B43_DEBUG 191#if B43_DEBUG
192 B43_WARN_ON(!dev->phy.phy_locked); 192 B43_WARN_ON(!dev->phy.phy_locked);
193 dev->phy.phy_locked = 0; 193 dev->phy.phy_locked = false;
194#endif 194#endif
195 B43_WARN_ON(dev->dev->core_rev < 3); 195 B43_WARN_ON(dev->dev->core_rev < 3);
196 196
diff --git a/drivers/net/wireless/b43/phy_g.c b/drivers/net/wireless/b43/phy_g.c
index 8e157bc213f3..12f467b8d564 100644
--- a/drivers/net/wireless/b43/phy_g.c
+++ b/drivers/net/wireless/b43/phy_g.c
@@ -897,7 +897,7 @@ b43_radio_interference_mitigation_enable(struct b43_wldev *dev, int mode)
897 if (b43_phy_read(dev, 0x0033) & 0x0800) 897 if (b43_phy_read(dev, 0x0033) & 0x0800)
898 break; 898 break;
899 899
900 gphy->aci_enable = 1; 900 gphy->aci_enable = true;
901 901
902 phy_stacksave(B43_PHY_RADIO_BITFIELD); 902 phy_stacksave(B43_PHY_RADIO_BITFIELD);
903 phy_stacksave(B43_PHY_G_CRS); 903 phy_stacksave(B43_PHY_G_CRS);
@@ -1038,7 +1038,7 @@ b43_radio_interference_mitigation_disable(struct b43_wldev *dev, int mode)
1038 if (!(b43_phy_read(dev, 0x0033) & 0x0800)) 1038 if (!(b43_phy_read(dev, 0x0033) & 0x0800))
1039 break; 1039 break;
1040 1040
1041 gphy->aci_enable = 0; 1041 gphy->aci_enable = false;
1042 1042
1043 phy_stackrestore(B43_PHY_RADIO_BITFIELD); 1043 phy_stackrestore(B43_PHY_RADIO_BITFIELD);
1044 phy_stackrestore(B43_PHY_G_CRS); 1044 phy_stackrestore(B43_PHY_G_CRS);
@@ -1956,10 +1956,10 @@ static void b43_phy_init_pctl(struct b43_wldev *dev)
1956 bbatt.att = 11; 1956 bbatt.att = 11;
1957 if (phy->radio_rev == 8) { 1957 if (phy->radio_rev == 8) {
1958 rfatt.att = 15; 1958 rfatt.att = 15;
1959 rfatt.with_padmix = 1; 1959 rfatt.with_padmix = true;
1960 } else { 1960 } else {
1961 rfatt.att = 9; 1961 rfatt.att = 9;
1962 rfatt.with_padmix = 0; 1962 rfatt.with_padmix = false;
1963 } 1963 }
1964 b43_set_txpower_g(dev, &bbatt, &rfatt, 0); 1964 b43_set_txpower_g(dev, &bbatt, &rfatt, 0);
1965 } 1965 }
@@ -2137,7 +2137,7 @@ static void default_radio_attenuation(struct b43_wldev *dev,
2137 struct b43_bus_dev *bdev = dev->dev; 2137 struct b43_bus_dev *bdev = dev->dev;
2138 struct b43_phy *phy = &dev->phy; 2138 struct b43_phy *phy = &dev->phy;
2139 2139
2140 rf->with_padmix = 0; 2140 rf->with_padmix = false;
2141 2141
2142 if (dev->dev->board_vendor == SSB_BOARDVENDOR_BCM && 2142 if (dev->dev->board_vendor == SSB_BOARDVENDOR_BCM &&
2143 dev->dev->board_type == SSB_BOARD_BCM4309G) { 2143 dev->dev->board_type == SSB_BOARD_BCM4309G) {
@@ -2221,7 +2221,7 @@ static void default_radio_attenuation(struct b43_wldev *dev,
2221 return; 2221 return;
2222 case 8: 2222 case 8:
2223 rf->att = 0xA; 2223 rf->att = 0xA;
2224 rf->with_padmix = 1; 2224 rf->with_padmix = true;
2225 return; 2225 return;
2226 case 9: 2226 case 9:
2227 default: 2227 default:
@@ -2389,7 +2389,7 @@ static int b43_gphy_init_tssi2dbm_table(struct b43_wldev *dev)
2389 B43_WARN_ON((dev->dev->chip_id == 0x4301) && 2389 B43_WARN_ON((dev->dev->chip_id == 0x4301) &&
2390 (phy->radio_ver != 0x2050)); /* Not supported anymore */ 2390 (phy->radio_ver != 0x2050)); /* Not supported anymore */
2391 2391
2392 gphy->dyn_tssi_tbl = 0; 2392 gphy->dyn_tssi_tbl = false;
2393 2393
2394 if (pab0 != 0 && pab1 != 0 && pab2 != 0 && 2394 if (pab0 != 0 && pab1 != 0 && pab2 != 0 &&
2395 pab0 != -1 && pab1 != -1 && pab2 != -1) { 2395 pab0 != -1 && pab1 != -1 && pab2 != -1) {
@@ -2404,7 +2404,7 @@ static int b43_gphy_init_tssi2dbm_table(struct b43_wldev *dev)
2404 pab1, pab2); 2404 pab1, pab2);
2405 if (!gphy->tssi2dbm) 2405 if (!gphy->tssi2dbm)
2406 return -ENOMEM; 2406 return -ENOMEM;
2407 gphy->dyn_tssi_tbl = 1; 2407 gphy->dyn_tssi_tbl = true;
2408 } else { 2408 } else {
2409 /* pabX values not set in SPROM. */ 2409 /* pabX values not set in SPROM. */
2410 gphy->tgt_idle_tssi = 52; 2410 gphy->tgt_idle_tssi = 52;
@@ -2504,7 +2504,7 @@ static void b43_gphy_op_free(struct b43_wldev *dev)
2504 2504
2505 if (gphy->dyn_tssi_tbl) 2505 if (gphy->dyn_tssi_tbl)
2506 kfree(gphy->tssi2dbm); 2506 kfree(gphy->tssi2dbm);
2507 gphy->dyn_tssi_tbl = 0; 2507 gphy->dyn_tssi_tbl = false;
2508 gphy->tssi2dbm = NULL; 2508 gphy->tssi2dbm = NULL;
2509 2509
2510 kfree(gphy); 2510 kfree(gphy);
@@ -2531,10 +2531,10 @@ static int b43_gphy_op_prepare_hardware(struct b43_wldev *dev)
2531 if (phy->rev == 1) { 2531 if (phy->rev == 1) {
2532 /* Workaround: Temporarly disable gmode through the early init 2532 /* Workaround: Temporarly disable gmode through the early init
2533 * phase, as the gmode stuff is not needed for phy rev 1 */ 2533 * phase, as the gmode stuff is not needed for phy rev 1 */
2534 phy->gmode = 0; 2534 phy->gmode = false;
2535 b43_wireless_core_reset(dev, 0); 2535 b43_wireless_core_reset(dev, 0);
2536 b43_phy_initg(dev); 2536 b43_phy_initg(dev);
2537 phy->gmode = 1; 2537 phy->gmode = true;
2538 b43_wireless_core_reset(dev, 1); 2538 b43_wireless_core_reset(dev, 1);
2539 } 2539 }
2540 2540
@@ -2613,7 +2613,7 @@ static void b43_gphy_op_software_rfkill(struct b43_wldev *dev,
2613 gphy->radio_off_context.rfover); 2613 gphy->radio_off_context.rfover);
2614 b43_phy_write(dev, B43_PHY_RFOVERVAL, 2614 b43_phy_write(dev, B43_PHY_RFOVERVAL,
2615 gphy->radio_off_context.rfoverval); 2615 gphy->radio_off_context.rfoverval);
2616 gphy->radio_off_context.valid = 0; 2616 gphy->radio_off_context.valid = false;
2617 } 2617 }
2618 channel = phy->channel; 2618 channel = phy->channel;
2619 b43_gphy_channel_switch(dev, 6, 1); 2619 b43_gphy_channel_switch(dev, 6, 1);
@@ -2626,7 +2626,7 @@ static void b43_gphy_op_software_rfkill(struct b43_wldev *dev,
2626 rfoverval = b43_phy_read(dev, B43_PHY_RFOVERVAL); 2626 rfoverval = b43_phy_read(dev, B43_PHY_RFOVERVAL);
2627 gphy->radio_off_context.rfover = rfover; 2627 gphy->radio_off_context.rfover = rfover;
2628 gphy->radio_off_context.rfoverval = rfoverval; 2628 gphy->radio_off_context.rfoverval = rfoverval;
2629 gphy->radio_off_context.valid = 1; 2629 gphy->radio_off_context.valid = true;
2630 b43_phy_write(dev, B43_PHY_RFOVER, rfover | 0x008C); 2630 b43_phy_write(dev, B43_PHY_RFOVER, rfover | 0x008C);
2631 b43_phy_write(dev, B43_PHY_RFOVERVAL, rfoverval & 0xFF73); 2631 b43_phy_write(dev, B43_PHY_RFOVERVAL, rfoverval & 0xFF73);
2632 } 2632 }
@@ -2711,10 +2711,10 @@ static int b43_gphy_op_interf_mitigation(struct b43_wldev *dev,
2711 if ((phy->rev == 0) || (!phy->gmode)) 2711 if ((phy->rev == 0) || (!phy->gmode))
2712 return -ENODEV; 2712 return -ENODEV;
2713 2713
2714 gphy->aci_wlan_automatic = 0; 2714 gphy->aci_wlan_automatic = false;
2715 switch (mode) { 2715 switch (mode) {
2716 case B43_INTERFMODE_AUTOWLAN: 2716 case B43_INTERFMODE_AUTOWLAN:
2717 gphy->aci_wlan_automatic = 1; 2717 gphy->aci_wlan_automatic = true;
2718 if (gphy->aci_enable) 2718 if (gphy->aci_enable)
2719 mode = B43_INTERFMODE_MANUALWLAN; 2719 mode = B43_INTERFMODE_MANUALWLAN;
2720 else 2720 else
@@ -2735,8 +2735,8 @@ static int b43_gphy_op_interf_mitigation(struct b43_wldev *dev,
2735 b43_radio_interference_mitigation_disable(dev, currentmode); 2735 b43_radio_interference_mitigation_disable(dev, currentmode);
2736 2736
2737 if (mode == B43_INTERFMODE_NONE) { 2737 if (mode == B43_INTERFMODE_NONE) {
2738 gphy->aci_enable = 0; 2738 gphy->aci_enable = false;
2739 gphy->aci_hw_rssi = 0; 2739 gphy->aci_hw_rssi = false;
2740 } else 2740 } else
2741 b43_radio_interference_mitigation_enable(dev, mode); 2741 b43_radio_interference_mitigation_enable(dev, mode);
2742 gphy->interfmode = mode; 2742 gphy->interfmode = mode;
diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
index f93d66b1817b..3ae28561f7a4 100644
--- a/drivers/net/wireless/b43/phy_lp.c
+++ b/drivers/net/wireless/b43/phy_lp.c
@@ -736,9 +736,9 @@ static void lpphy_set_deaf(struct b43_wldev *dev, bool user)
736 struct b43_phy_lp *lpphy = dev->phy.lp; 736 struct b43_phy_lp *lpphy = dev->phy.lp;
737 737
738 if (user) 738 if (user)
739 lpphy->crs_usr_disable = 1; 739 lpphy->crs_usr_disable = true;
740 else 740 else
741 lpphy->crs_sys_disable = 1; 741 lpphy->crs_sys_disable = true;
742 b43_phy_maskset(dev, B43_LPPHY_CRSGAIN_CTL, 0xFF1F, 0x80); 742 b43_phy_maskset(dev, B43_LPPHY_CRSGAIN_CTL, 0xFF1F, 0x80);
743} 743}
744 744
@@ -747,9 +747,9 @@ static void lpphy_clear_deaf(struct b43_wldev *dev, bool user)
747 struct b43_phy_lp *lpphy = dev->phy.lp; 747 struct b43_phy_lp *lpphy = dev->phy.lp;
748 748
749 if (user) 749 if (user)
750 lpphy->crs_usr_disable = 0; 750 lpphy->crs_usr_disable = false;
751 else 751 else
752 lpphy->crs_sys_disable = 0; 752 lpphy->crs_sys_disable = false;
753 753
754 if (!lpphy->crs_usr_disable && !lpphy->crs_sys_disable) { 754 if (!lpphy->crs_usr_disable && !lpphy->crs_sys_disable) {
755 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) 755 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
index c8fa2cd97e64..f1a7e5890adc 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -3375,7 +3375,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,
3375 3375
3376 if (dev->phy.rev >= 4) { 3376 if (dev->phy.rev >= 4) {
3377 avoid = nphy->hang_avoid; 3377 avoid = nphy->hang_avoid;
3378 nphy->hang_avoid = 0; 3378 nphy->hang_avoid = false;
3379 } 3379 }
3380 3380
3381 b43_ntab_read_bulk(dev, B43_NTAB16(7, 0x110), 2, save); 3381 b43_ntab_read_bulk(dev, B43_NTAB16(7, 0x110), 2, save);
@@ -3485,7 +3485,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,
3485 3485
3486 if (phy6or5x && updated[core] == 0) { 3486 if (phy6or5x && updated[core] == 0) {
3487 b43_nphy_update_tx_cal_ladder(dev, core); 3487 b43_nphy_update_tx_cal_ladder(dev, core);
3488 updated[core] = 1; 3488 updated[core] = true;
3489 } 3489 }
3490 3490
3491 tmp = (params[core].ncorr[type] << 8) | 0x66; 3491 tmp = (params[core].ncorr[type] << 8) | 0x66;
diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c
index fcff923b3c18..d07b412a32c4 100644
--- a/drivers/net/wireless/b43/pio.c
+++ b/drivers/net/wireless/b43/pio.c
@@ -539,7 +539,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *skb)
539 /* Not enough memory on the queue. */ 539 /* Not enough memory on the queue. */
540 err = -EBUSY; 540 err = -EBUSY;
541 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); 541 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb));
542 q->stopped = 1; 542 q->stopped = true;
543 goto out; 543 goto out;
544 } 544 }
545 545
@@ -566,7 +566,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *skb)
566 (q->free_packet_slots == 0)) { 566 (q->free_packet_slots == 0)) {
567 /* The queue is full. */ 567 /* The queue is full. */
568 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); 568 ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb));
569 q->stopped = 1; 569 q->stopped = true;
570 } 570 }
571 571
572out: 572out:
@@ -601,7 +601,7 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev,
601 601
602 if (q->stopped) { 602 if (q->stopped) {
603 ieee80211_wake_queue(dev->wl->hw, q->queue_prio); 603 ieee80211_wake_queue(dev->wl->hw, q->queue_prio);
604 q->stopped = 0; 604 q->stopped = false;
605 } 605 }
606} 606}
607 607
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index 5f77cbe0b6aa..2c5367884b3f 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -874,7 +874,7 @@ bool b43_fill_txstatus_report(struct b43_wldev *dev,
874 struct ieee80211_tx_info *report, 874 struct ieee80211_tx_info *report,
875 const struct b43_txstatus *status) 875 const struct b43_txstatus *status)
876{ 876{
877 bool frame_success = 1; 877 bool frame_success = true;
878 int retry_limit; 878 int retry_limit;
879 879
880 /* preserve the confiured retry limit before clearing the status 880 /* preserve the confiured retry limit before clearing the status
@@ -890,7 +890,7 @@ bool b43_fill_txstatus_report(struct b43_wldev *dev,
890 /* The frame was not ACKed... */ 890 /* The frame was not ACKed... */
891 if (!(report->flags & IEEE80211_TX_CTL_NO_ACK)) { 891 if (!(report->flags & IEEE80211_TX_CTL_NO_ACK)) {
892 /* ...but we expected an ACK. */ 892 /* ...but we expected an ACK. */
893 frame_success = 0; 893 frame_success = false;
894 } 894 }
895 } 895 }
896 if (status->frame_count == 0) { 896 if (status->frame_count == 0) {
diff --git a/drivers/net/wireless/b43legacy/dma.c b/drivers/net/wireless/b43legacy/dma.c
index c5535adf6991..1ee31c55c7ba 100644
--- a/drivers/net/wireless/b43legacy/dma.c
+++ b/drivers/net/wireless/b43legacy/dma.c
@@ -715,7 +715,7 @@ struct b43legacy_dmaring *b43legacy_setup_dmaring(struct b43legacy_wldev *dev,
715 ring->mmio_base = b43legacy_dmacontroller_base(type, controller_index); 715 ring->mmio_base = b43legacy_dmacontroller_base(type, controller_index);
716 ring->index = controller_index; 716 ring->index = controller_index;
717 if (for_tx) { 717 if (for_tx) {
718 ring->tx = 1; 718 ring->tx = true;
719 ring->current_slot = -1; 719 ring->current_slot = -1;
720 } else { 720 } else {
721 if (ring->index == 0) { 721 if (ring->index == 0) {
@@ -806,7 +806,7 @@ void b43legacy_dma_free(struct b43legacy_wldev *dev)
806static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask) 806static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask)
807{ 807{
808 u64 orig_mask = mask; 808 u64 orig_mask = mask;
809 bool fallback = 0; 809 bool fallback = false;
810 int err; 810 int err;
811 811
812 /* Try to set the DMA mask. If it fails, try falling back to a 812 /* Try to set the DMA mask. If it fails, try falling back to a
@@ -820,12 +820,12 @@ static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask)
820 } 820 }
821 if (mask == DMA_BIT_MASK(64)) { 821 if (mask == DMA_BIT_MASK(64)) {
822 mask = DMA_BIT_MASK(32); 822 mask = DMA_BIT_MASK(32);
823 fallback = 1; 823 fallback = true;
824 continue; 824 continue;
825 } 825 }
826 if (mask == DMA_BIT_MASK(32)) { 826 if (mask == DMA_BIT_MASK(32)) {
827 mask = DMA_BIT_MASK(30); 827 mask = DMA_BIT_MASK(30);
828 fallback = 1; 828 fallback = true;
829 continue; 829 continue;
830 } 830 }
831 b43legacyerr(dev->wl, "The machine/kernel does not support " 831 b43legacyerr(dev->wl, "The machine/kernel does not support "
@@ -858,7 +858,7 @@ int b43legacy_dma_init(struct b43legacy_wldev *dev)
858#ifdef CONFIG_B43LEGACY_PIO 858#ifdef CONFIG_B43LEGACY_PIO
859 b43legacywarn(dev->wl, "DMA for this device not supported. " 859 b43legacywarn(dev->wl, "DMA for this device not supported. "
860 "Falling back to PIO\n"); 860 "Falling back to PIO\n");
861 dev->__using_pio = 1; 861 dev->__using_pio = true;
862 return -EAGAIN; 862 return -EAGAIN;
863#else 863#else
864 b43legacyerr(dev->wl, "DMA for this device not supported and " 864 b43legacyerr(dev->wl, "DMA for this device not supported and "
@@ -1068,7 +1068,7 @@ static int dma_tx_fragment(struct b43legacy_dmaring *ring,
1068 memset(meta, 0, sizeof(*meta)); 1068 memset(meta, 0, sizeof(*meta));
1069 1069
1070 meta->skb = skb; 1070 meta->skb = skb;
1071 meta->is_last_fragment = 1; 1071 meta->is_last_fragment = true;
1072 1072
1073 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1); 1073 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1);
1074 /* create a bounce buffer in zone_dma on mapping failure. */ 1074 /* create a bounce buffer in zone_dma on mapping failure. */
@@ -1187,7 +1187,7 @@ int b43legacy_dma_tx(struct b43legacy_wldev *dev,
1187 should_inject_overflow(ring)) { 1187 should_inject_overflow(ring)) {
1188 /* This TX ring is full. */ 1188 /* This TX ring is full. */
1189 ieee80211_stop_queue(dev->wl->hw, txring_to_priority(ring)); 1189 ieee80211_stop_queue(dev->wl->hw, txring_to_priority(ring));
1190 ring->stopped = 1; 1190 ring->stopped = true;
1191 if (b43legacy_debug(dev, B43legacy_DBG_DMAVERBOSE)) 1191 if (b43legacy_debug(dev, B43legacy_DBG_DMAVERBOSE))
1192 b43legacydbg(dev->wl, "Stopped TX ring %d\n", 1192 b43legacydbg(dev->wl, "Stopped TX ring %d\n",
1193 ring->index); 1193 ring->index);
@@ -1286,7 +1286,7 @@ void b43legacy_dma_handle_txstatus(struct b43legacy_wldev *dev,
1286 if (ring->stopped) { 1286 if (ring->stopped) {
1287 B43legacy_WARN_ON(free_slots(ring) < SLOTS_PER_PACKET); 1287 B43legacy_WARN_ON(free_slots(ring) < SLOTS_PER_PACKET);
1288 ieee80211_wake_queue(dev->wl->hw, txring_to_priority(ring)); 1288 ieee80211_wake_queue(dev->wl->hw, txring_to_priority(ring));
1289 ring->stopped = 0; 1289 ring->stopped = false;
1290 if (b43legacy_debug(dev, B43legacy_DBG_DMAVERBOSE)) 1290 if (b43legacy_debug(dev, B43legacy_DBG_DMAVERBOSE))
1291 b43legacydbg(dev->wl, "Woke up TX ring %d\n", 1291 b43legacydbg(dev->wl, "Woke up TX ring %d\n",
1292 ring->index); 1292 ring->index);
diff --git a/drivers/net/wireless/b43legacy/leds.c b/drivers/net/wireless/b43legacy/leds.c
index 2f1bfdc44f94..fd4565389c77 100644
--- a/drivers/net/wireless/b43legacy/leds.c
+++ b/drivers/net/wireless/b43legacy/leds.c
@@ -203,11 +203,11 @@ void b43legacy_leds_init(struct b43legacy_wldev *dev)
203 if (sprom[i] == 0xFF) { 203 if (sprom[i] == 0xFF) {
204 /* There is no LED information in the SPROM 204 /* There is no LED information in the SPROM
205 * for this LED. Hardcode it here. */ 205 * for this LED. Hardcode it here. */
206 activelow = 0; 206 activelow = false;
207 switch (i) { 207 switch (i) {
208 case 0: 208 case 0:
209 behaviour = B43legacy_LED_ACTIVITY; 209 behaviour = B43legacy_LED_ACTIVITY;
210 activelow = 1; 210 activelow = true;
211 if (bus->boardinfo.vendor == PCI_VENDOR_ID_COMPAQ) 211 if (bus->boardinfo.vendor == PCI_VENDOR_ID_COMPAQ)
212 behaviour = B43legacy_LED_RADIO_ALL; 212 behaviour = B43legacy_LED_RADIO_ALL;
213 break; 213 break;
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c
index 20f02437af8c..200138cdb030 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -722,9 +722,9 @@ void b43legacy_wireless_core_reset(struct b43legacy_wldev *dev, u32 flags)
722 macctl &= ~B43legacy_MACCTL_GMODE; 722 macctl &= ~B43legacy_MACCTL_GMODE;
723 if (flags & B43legacy_TMSLOW_GMODE) { 723 if (flags & B43legacy_TMSLOW_GMODE) {
724 macctl |= B43legacy_MACCTL_GMODE; 724 macctl |= B43legacy_MACCTL_GMODE;
725 dev->phy.gmode = 1; 725 dev->phy.gmode = true;
726 } else 726 } else
727 dev->phy.gmode = 0; 727 dev->phy.gmode = false;
728 macctl |= B43legacy_MACCTL_IHR_ENABLED; 728 macctl |= B43legacy_MACCTL_IHR_ENABLED;
729 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, macctl); 729 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, macctl);
730} 730}
@@ -811,7 +811,7 @@ static void b43legacy_calculate_link_quality(struct b43legacy_wldev *dev)
811 if (dev->noisecalc.calculation_running) 811 if (dev->noisecalc.calculation_running)
812 return; 812 return;
813 dev->noisecalc.channel_at_start = dev->phy.channel; 813 dev->noisecalc.channel_at_start = dev->phy.channel;
814 dev->noisecalc.calculation_running = 1; 814 dev->noisecalc.calculation_running = true;
815 dev->noisecalc.nr_samples = 0; 815 dev->noisecalc.nr_samples = 0;
816 816
817 b43legacy_generate_noise_sample(dev); 817 b43legacy_generate_noise_sample(dev);
@@ -873,7 +873,7 @@ static void handle_irq_noise(struct b43legacy_wldev *dev)
873 873
874 dev->stats.link_noise = average; 874 dev->stats.link_noise = average;
875drop_calculation: 875drop_calculation:
876 dev->noisecalc.calculation_running = 0; 876 dev->noisecalc.calculation_running = false;
877 return; 877 return;
878 } 878 }
879generate_new: 879generate_new:
@@ -889,7 +889,7 @@ static void handle_irq_tbtt_indication(struct b43legacy_wldev *dev)
889 b43legacy_power_saving_ctl_bits(dev, -1, -1); 889 b43legacy_power_saving_ctl_bits(dev, -1, -1);
890 } 890 }
891 if (b43legacy_is_mode(dev->wl, NL80211_IFTYPE_ADHOC)) 891 if (b43legacy_is_mode(dev->wl, NL80211_IFTYPE_ADHOC))
892 dev->dfq_valid = 1; 892 dev->dfq_valid = true;
893} 893}
894 894
895static void handle_irq_atim_end(struct b43legacy_wldev *dev) 895static void handle_irq_atim_end(struct b43legacy_wldev *dev)
@@ -898,7 +898,7 @@ static void handle_irq_atim_end(struct b43legacy_wldev *dev)
898 b43legacy_write32(dev, B43legacy_MMIO_MACCMD, 898 b43legacy_write32(dev, B43legacy_MMIO_MACCMD,
899 b43legacy_read32(dev, B43legacy_MMIO_MACCMD) 899 b43legacy_read32(dev, B43legacy_MMIO_MACCMD)
900 | B43legacy_MACCMD_DFQ_VALID); 900 | B43legacy_MACCMD_DFQ_VALID);
901 dev->dfq_valid = 0; 901 dev->dfq_valid = false;
902 } 902 }
903} 903}
904 904
@@ -971,7 +971,7 @@ static void b43legacy_write_beacon_template(struct b43legacy_wldev *dev,
971 unsigned int i, len, variable_len; 971 unsigned int i, len, variable_len;
972 const struct ieee80211_mgmt *bcn; 972 const struct ieee80211_mgmt *bcn;
973 const u8 *ie; 973 const u8 *ie;
974 bool tim_found = 0; 974 bool tim_found = false;
975 unsigned int rate; 975 unsigned int rate;
976 u16 ctl; 976 u16 ctl;
977 int antenna; 977 int antenna;
@@ -1019,7 +1019,7 @@ static void b43legacy_write_beacon_template(struct b43legacy_wldev *dev,
1019 /* A valid TIM is at least 4 bytes long. */ 1019 /* A valid TIM is at least 4 bytes long. */
1020 if (ie_len < 4) 1020 if (ie_len < 4)
1021 break; 1021 break;
1022 tim_found = 1; 1022 tim_found = true;
1023 1023
1024 tim_position = sizeof(struct b43legacy_plcp_hdr6); 1024 tim_position = sizeof(struct b43legacy_plcp_hdr6);
1025 tim_position += offsetof(struct ieee80211_mgmt, 1025 tim_position += offsetof(struct ieee80211_mgmt,
@@ -1172,7 +1172,7 @@ static void b43legacy_upload_beacon0(struct b43legacy_wldev *dev)
1172 * but we don't use that feature anyway. */ 1172 * but we don't use that feature anyway. */
1173 b43legacy_write_probe_resp_template(dev, 0x268, 0x4A, 1173 b43legacy_write_probe_resp_template(dev, 0x268, 0x4A,
1174 &__b43legacy_ratetable[3]); 1174 &__b43legacy_ratetable[3]);
1175 wl->beacon0_uploaded = 1; 1175 wl->beacon0_uploaded = true;
1176} 1176}
1177 1177
1178static void b43legacy_upload_beacon1(struct b43legacy_wldev *dev) 1178static void b43legacy_upload_beacon1(struct b43legacy_wldev *dev)
@@ -1182,7 +1182,7 @@ static void b43legacy_upload_beacon1(struct b43legacy_wldev *dev)
1182 if (wl->beacon1_uploaded) 1182 if (wl->beacon1_uploaded)
1183 return; 1183 return;
1184 b43legacy_write_beacon_template(dev, 0x468, 0x1A); 1184 b43legacy_write_beacon_template(dev, 0x468, 0x1A);
1185 wl->beacon1_uploaded = 1; 1185 wl->beacon1_uploaded = true;
1186} 1186}
1187 1187
1188static void handle_irq_beacon(struct b43legacy_wldev *dev) 1188static void handle_irq_beacon(struct b43legacy_wldev *dev)
@@ -1212,7 +1212,7 @@ static void handle_irq_beacon(struct b43legacy_wldev *dev)
1212 if (unlikely(wl->beacon_templates_virgin)) { 1212 if (unlikely(wl->beacon_templates_virgin)) {
1213 /* We never uploaded a beacon before. 1213 /* We never uploaded a beacon before.
1214 * Upload both templates now, but only mark one valid. */ 1214 * Upload both templates now, but only mark one valid. */
1215 wl->beacon_templates_virgin = 0; 1215 wl->beacon_templates_virgin = false;
1216 b43legacy_upload_beacon0(dev); 1216 b43legacy_upload_beacon0(dev);
1217 b43legacy_upload_beacon1(dev); 1217 b43legacy_upload_beacon1(dev);
1218 cmd = b43legacy_read32(dev, B43legacy_MMIO_MACCMD); 1218 cmd = b43legacy_read32(dev, B43legacy_MMIO_MACCMD);
@@ -1275,8 +1275,8 @@ static void b43legacy_update_templates(struct b43legacy_wl *wl)
1275 if (wl->current_beacon) 1275 if (wl->current_beacon)
1276 dev_kfree_skb_any(wl->current_beacon); 1276 dev_kfree_skb_any(wl->current_beacon);
1277 wl->current_beacon = beacon; 1277 wl->current_beacon = beacon;
1278 wl->beacon0_uploaded = 0; 1278 wl->beacon0_uploaded = false;
1279 wl->beacon1_uploaded = 0; 1279 wl->beacon1_uploaded = false;
1280 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger); 1280 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger);
1281} 1281}
1282 1282
@@ -2510,7 +2510,7 @@ static int find_wldev_for_phymode(struct b43legacy_wl *wl,
2510 if (d->phy.possible_phymodes & phymode) { 2510 if (d->phy.possible_phymodes & phymode) {
2511 /* Ok, this device supports the PHY-mode. 2511 /* Ok, this device supports the PHY-mode.
2512 * Set the gmode bit. */ 2512 * Set the gmode bit. */
2513 *gmode = 1; 2513 *gmode = true;
2514 *dev = d; 2514 *dev = d;
2515 2515
2516 return 0; 2516 return 0;
@@ -2546,7 +2546,7 @@ static int b43legacy_switch_phymode(struct b43legacy_wl *wl,
2546 struct b43legacy_wldev *uninitialized_var(up_dev); 2546 struct b43legacy_wldev *uninitialized_var(up_dev);
2547 struct b43legacy_wldev *down_dev; 2547 struct b43legacy_wldev *down_dev;
2548 int err; 2548 int err;
2549 bool gmode = 0; 2549 bool gmode = false;
2550 int prev_status; 2550 int prev_status;
2551 2551
2552 err = find_wldev_for_phymode(wl, new_mode, &up_dev, &gmode); 2552 err = find_wldev_for_phymode(wl, new_mode, &up_dev, &gmode);
@@ -3044,12 +3044,12 @@ static void setup_struct_phy_for_init(struct b43legacy_wldev *dev,
3044 3044
3045 /* Assume the radio is enabled. If it's not enabled, the state will 3045 /* Assume the radio is enabled. If it's not enabled, the state will
3046 * immediately get fixed on the first periodic work run. */ 3046 * immediately get fixed on the first periodic work run. */
3047 dev->radio_hw_enable = 1; 3047 dev->radio_hw_enable = true;
3048 3048
3049 phy->savedpctlreg = 0xFFFF; 3049 phy->savedpctlreg = 0xFFFF;
3050 phy->aci_enable = 0; 3050 phy->aci_enable = false;
3051 phy->aci_wlan_automatic = 0; 3051 phy->aci_wlan_automatic = false;
3052 phy->aci_hw_rssi = 0; 3052 phy->aci_hw_rssi = false;
3053 3053
3054 lo = phy->_lo_pairs; 3054 lo = phy->_lo_pairs;
3055 if (lo) 3055 if (lo)
@@ -3081,7 +3081,7 @@ static void setup_struct_phy_for_init(struct b43legacy_wldev *dev,
3081static void setup_struct_wldev_for_init(struct b43legacy_wldev *dev) 3081static void setup_struct_wldev_for_init(struct b43legacy_wldev *dev)
3082{ 3082{
3083 /* Flags */ 3083 /* Flags */
3084 dev->dfq_valid = 0; 3084 dev->dfq_valid = false;
3085 3085
3086 /* Stats */ 3086 /* Stats */
3087 memset(&dev->stats, 0, sizeof(dev->stats)); 3087 memset(&dev->stats, 0, sizeof(dev->stats));
@@ -3187,9 +3187,9 @@ static void prepare_phy_data_for_init(struct b43legacy_wldev *dev)
3187 phy->lofcal = 0xFFFF; 3187 phy->lofcal = 0xFFFF;
3188 phy->initval = 0xFFFF; 3188 phy->initval = 0xFFFF;
3189 3189
3190 phy->aci_enable = 0; 3190 phy->aci_enable = false;
3191 phy->aci_wlan_automatic = 0; 3191 phy->aci_wlan_automatic = false;
3192 phy->aci_hw_rssi = 0; 3192 phy->aci_hw_rssi = false;
3193 3193
3194 phy->antenna_diversity = 0xFFFF; 3194 phy->antenna_diversity = 0xFFFF;
3195 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig)); 3195 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig));
@@ -3355,7 +3355,7 @@ static int b43legacy_op_add_interface(struct ieee80211_hw *hw,
3355 b43legacydbg(wl, "Adding Interface type %d\n", vif->type); 3355 b43legacydbg(wl, "Adding Interface type %d\n", vif->type);
3356 3356
3357 dev = wl->current_dev; 3357 dev = wl->current_dev;
3358 wl->operating = 1; 3358 wl->operating = true;
3359 wl->vif = vif; 3359 wl->vif = vif;
3360 wl->if_type = vif->type; 3360 wl->if_type = vif->type;
3361 memcpy(wl->mac_addr, vif->addr, ETH_ALEN); 3361 memcpy(wl->mac_addr, vif->addr, ETH_ALEN);
@@ -3389,7 +3389,7 @@ static void b43legacy_op_remove_interface(struct ieee80211_hw *hw,
3389 B43legacy_WARN_ON(wl->vif != vif); 3389 B43legacy_WARN_ON(wl->vif != vif);
3390 wl->vif = NULL; 3390 wl->vif = NULL;
3391 3391
3392 wl->operating = 0; 3392 wl->operating = false;
3393 3393
3394 spin_lock_irqsave(&wl->irq_lock, flags); 3394 spin_lock_irqsave(&wl->irq_lock, flags);
3395 b43legacy_adjust_opmode(dev); 3395 b43legacy_adjust_opmode(dev);
@@ -3413,10 +3413,10 @@ static int b43legacy_op_start(struct ieee80211_hw *hw)
3413 memset(wl->bssid, 0, ETH_ALEN); 3413 memset(wl->bssid, 0, ETH_ALEN);
3414 memset(wl->mac_addr, 0, ETH_ALEN); 3414 memset(wl->mac_addr, 0, ETH_ALEN);
3415 wl->filter_flags = 0; 3415 wl->filter_flags = 0;
3416 wl->beacon0_uploaded = 0; 3416 wl->beacon0_uploaded = false;
3417 wl->beacon1_uploaded = 0; 3417 wl->beacon1_uploaded = false;
3418 wl->beacon_templates_virgin = 1; 3418 wl->beacon_templates_virgin = true;
3419 wl->radio_enabled = 1; 3419 wl->radio_enabled = true;
3420 3420
3421 mutex_lock(&wl->mutex); 3421 mutex_lock(&wl->mutex);
3422 3422
@@ -3455,7 +3455,7 @@ static void b43legacy_op_stop(struct ieee80211_hw *hw)
3455 if (b43legacy_status(dev) >= B43legacy_STAT_STARTED) 3455 if (b43legacy_status(dev) >= B43legacy_STAT_STARTED)
3456 b43legacy_wireless_core_stop(dev); 3456 b43legacy_wireless_core_stop(dev);
3457 b43legacy_wireless_core_exit(dev); 3457 b43legacy_wireless_core_exit(dev);
3458 wl->radio_enabled = 0; 3458 wl->radio_enabled = false;
3459 mutex_unlock(&wl->mutex); 3459 mutex_unlock(&wl->mutex);
3460} 3460}
3461 3461
@@ -3614,7 +3614,7 @@ static int b43legacy_wireless_core_attach(struct b43legacy_wldev *dev)
3614 have_bphy = 1; 3614 have_bphy = 1;
3615 3615
3616 dev->phy.gmode = (have_gphy || have_bphy); 3616 dev->phy.gmode = (have_gphy || have_bphy);
3617 dev->phy.radio_on = 1; 3617 dev->phy.radio_on = true;
3618 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0; 3618 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0;
3619 b43legacy_wireless_core_reset(dev, tmp); 3619 b43legacy_wireless_core_reset(dev, tmp);
3620 3620
@@ -3705,7 +3705,7 @@ static int b43legacy_one_core_attach(struct ssb_device *dev,
3705 (void (*)(unsigned long))b43legacy_interrupt_tasklet, 3705 (void (*)(unsigned long))b43legacy_interrupt_tasklet,
3706 (unsigned long)wldev); 3706 (unsigned long)wldev);
3707 if (modparam_pio) 3707 if (modparam_pio)
3708 wldev->__using_pio = 1; 3708 wldev->__using_pio = true;
3709 INIT_LIST_HEAD(&wldev->list); 3709 INIT_LIST_HEAD(&wldev->list);
3710 3710
3711 err = b43legacy_wireless_core_attach(wldev); 3711 err = b43legacy_wireless_core_attach(wldev);
diff --git a/drivers/net/wireless/b43legacy/radio.c b/drivers/net/wireless/b43legacy/radio.c
index 475eb14e665b..fcbafcd603cc 100644
--- a/drivers/net/wireless/b43legacy/radio.c
+++ b/drivers/net/wireless/b43legacy/radio.c
@@ -1067,7 +1067,7 @@ b43legacy_radio_interference_mitigation_enable(struct b43legacy_wldev *dev,
1067 if (b43legacy_phy_read(dev, 0x0033) & 0x0800) 1067 if (b43legacy_phy_read(dev, 0x0033) & 0x0800)
1068 break; 1068 break;
1069 1069
1070 phy->aci_enable = 1; 1070 phy->aci_enable = true;
1071 1071
1072 phy_stacksave(B43legacy_PHY_RADIO_BITFIELD); 1072 phy_stacksave(B43legacy_PHY_RADIO_BITFIELD);
1073 phy_stacksave(B43legacy_PHY_G_CRS); 1073 phy_stacksave(B43legacy_PHY_G_CRS);
@@ -1279,7 +1279,7 @@ b43legacy_radio_interference_mitigation_disable(struct b43legacy_wldev *dev,
1279 if (!(b43legacy_phy_read(dev, 0x0033) & 0x0800)) 1279 if (!(b43legacy_phy_read(dev, 0x0033) & 0x0800))
1280 break; 1280 break;
1281 1281
1282 phy->aci_enable = 0; 1282 phy->aci_enable = false;
1283 1283
1284 phy_stackrestore(B43legacy_PHY_RADIO_BITFIELD); 1284 phy_stackrestore(B43legacy_PHY_RADIO_BITFIELD);
1285 phy_stackrestore(B43legacy_PHY_G_CRS); 1285 phy_stackrestore(B43legacy_PHY_G_CRS);
@@ -1346,10 +1346,10 @@ int b43legacy_radio_set_interference_mitigation(struct b43legacy_wldev *dev,
1346 (phy->rev == 0) || (!phy->gmode)) 1346 (phy->rev == 0) || (!phy->gmode))
1347 return -ENODEV; 1347 return -ENODEV;
1348 1348
1349 phy->aci_wlan_automatic = 0; 1349 phy->aci_wlan_automatic = false;
1350 switch (mode) { 1350 switch (mode) {
1351 case B43legacy_RADIO_INTERFMODE_AUTOWLAN: 1351 case B43legacy_RADIO_INTERFMODE_AUTOWLAN:
1352 phy->aci_wlan_automatic = 1; 1352 phy->aci_wlan_automatic = true;
1353 if (phy->aci_enable) 1353 if (phy->aci_enable)
1354 mode = B43legacy_RADIO_INTERFMODE_MANUALWLAN; 1354 mode = B43legacy_RADIO_INTERFMODE_MANUALWLAN;
1355 else 1355 else
@@ -1371,8 +1371,8 @@ int b43legacy_radio_set_interference_mitigation(struct b43legacy_wldev *dev,
1371 currentmode); 1371 currentmode);
1372 1372
1373 if (mode == B43legacy_RADIO_INTERFMODE_NONE) { 1373 if (mode == B43legacy_RADIO_INTERFMODE_NONE) {
1374 phy->aci_enable = 0; 1374 phy->aci_enable = false;
1375 phy->aci_hw_rssi = 0; 1375 phy->aci_hw_rssi = false;
1376 } else 1376 } else
1377 b43legacy_radio_interference_mitigation_enable(dev, mode); 1377 b43legacy_radio_interference_mitigation_enable(dev, mode);
1378 phy->interfmode = mode; 1378 phy->interfmode = mode;
@@ -2102,7 +2102,7 @@ void b43legacy_radio_turn_on(struct b43legacy_wldev *dev)
2102 phy->radio_off_context.rfover); 2102 phy->radio_off_context.rfover);
2103 b43legacy_phy_write(dev, B43legacy_PHY_RFOVERVAL, 2103 b43legacy_phy_write(dev, B43legacy_PHY_RFOVERVAL,
2104 phy->radio_off_context.rfoverval); 2104 phy->radio_off_context.rfoverval);
2105 phy->radio_off_context.valid = 0; 2105 phy->radio_off_context.valid = false;
2106 } 2106 }
2107 channel = phy->channel; 2107 channel = phy->channel;
2108 err = b43legacy_radio_selectchannel(dev, 2108 err = b43legacy_radio_selectchannel(dev,
@@ -2113,7 +2113,7 @@ void b43legacy_radio_turn_on(struct b43legacy_wldev *dev)
2113 default: 2113 default:
2114 B43legacy_BUG_ON(1); 2114 B43legacy_BUG_ON(1);
2115 } 2115 }
2116 phy->radio_on = 1; 2116 phy->radio_on = true;
2117} 2117}
2118 2118
2119void b43legacy_radio_turn_off(struct b43legacy_wldev *dev, bool force) 2119void b43legacy_radio_turn_off(struct b43legacy_wldev *dev, bool force)
@@ -2131,14 +2131,14 @@ void b43legacy_radio_turn_off(struct b43legacy_wldev *dev, bool force)
2131 if (!force) { 2131 if (!force) {
2132 phy->radio_off_context.rfover = rfover; 2132 phy->radio_off_context.rfover = rfover;
2133 phy->radio_off_context.rfoverval = rfoverval; 2133 phy->radio_off_context.rfoverval = rfoverval;
2134 phy->radio_off_context.valid = 1; 2134 phy->radio_off_context.valid = true;
2135 } 2135 }
2136 b43legacy_phy_write(dev, B43legacy_PHY_RFOVER, rfover | 0x008C); 2136 b43legacy_phy_write(dev, B43legacy_PHY_RFOVER, rfover | 0x008C);
2137 b43legacy_phy_write(dev, B43legacy_PHY_RFOVERVAL, 2137 b43legacy_phy_write(dev, B43legacy_PHY_RFOVERVAL,
2138 rfoverval & 0xFF73); 2138 rfoverval & 0xFF73);
2139 } else 2139 } else
2140 b43legacy_phy_write(dev, 0x0015, 0xAA00); 2140 b43legacy_phy_write(dev, 0x0015, 0xAA00);
2141 phy->radio_on = 0; 2141 phy->radio_on = false;
2142 b43legacydbg(dev->wl, "Radio initialized\n"); 2142 b43legacydbg(dev->wl, "Radio initialized\n");
2143} 2143}
2144 2144
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
index 58d92bca9ca2..2c3a99d6c9a6 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
@@ -805,7 +805,7 @@ static int brcmf_netdev_stop(struct net_device *ndev)
805 return 0; 805 return 0;
806 806
807 /* Set state and stop OS transmissions */ 807 /* Set state and stop OS transmissions */
808 drvr->up = 0; 808 drvr->up = false;
809 netif_stop_queue(ndev); 809 netif_stop_queue(ndev);
810 810
811 return 0; 811 return 0;
@@ -842,7 +842,7 @@ static int brcmf_netdev_open(struct net_device *ndev)
842 } 842 }
843 /* Allow transmit calls */ 843 /* Allow transmit calls */
844 netif_start_queue(ndev); 844 netif_start_queue(ndev);
845 drvr_priv->pub.up = 1; 845 drvr_priv->pub.up = true;
846 if (brcmf_cfg80211_up(drvr_priv->pub.config)) { 846 if (brcmf_cfg80211_up(drvr_priv->pub.config)) {
847 brcmf_dbg(ERROR, "failed to bring up cfg80211\n"); 847 brcmf_dbg(ERROR, "failed to bring up cfg80211\n");
848 return -1; 848 return -1;
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/dma.c b/drivers/net/wireless/brcm80211/brcmsmac/dma.c
index b4cf617276c9..2e90a9a16ed6 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/dma.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/dma.c
@@ -641,10 +641,10 @@ struct dma_pub *dma_attach(char *name, struct si_pub *sih,
641 /* WAR64450 : DMACtl.Addr ext fields are not supported in SDIOD core. */ 641 /* WAR64450 : DMACtl.Addr ext fields are not supported in SDIOD core. */
642 if ((core->id.id == SDIOD_CORE_ID) 642 if ((core->id.id == SDIOD_CORE_ID)
643 && ((rev > 0) && (rev <= 2))) 643 && ((rev > 0) && (rev <= 2)))
644 di->addrext = 0; 644 di->addrext = false;
645 else if ((core->id.id == I2S_CORE_ID) && 645 else if ((core->id.id == I2S_CORE_ID) &&
646 ((rev == 0) || (rev == 1))) 646 ((rev == 0) || (rev == 1)))
647 di->addrext = 0; 647 di->addrext = false;
648 else 648 else
649 di->addrext = _dma_isaddrext(di); 649 di->addrext = _dma_isaddrext(di);
650 650
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
index 77fdc45b43ef..d106576ce338 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
@@ -1265,7 +1265,7 @@ uint brcms_reset(struct brcms_info *wl)
1265 brcms_c_reset(wl->wlc); 1265 brcms_c_reset(wl->wlc);
1266 1266
1267 /* dpc will not be rescheduled */ 1267 /* dpc will not be rescheduled */
1268 wl->resched = 0; 1268 wl->resched = false;
1269 1269
1270 return 0; 1270 return 0;
1271} 1271}
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c
index efa0142bdad5..ce8562aa5db0 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c
@@ -1603,7 +1603,7 @@ wlc_lcnphy_set_chanspec_tweaks(struct brcms_phy *pi, u16 chanspec)
1603 si_pmu_pllupd(pi->sh->sih); 1603 si_pmu_pllupd(pi->sh->sih);
1604 write_phy_reg(pi, 0x942, 0); 1604 write_phy_reg(pi, 0x942, 0);
1605 wlc_lcnphy_txrx_spur_avoidance_mode(pi, false); 1605 wlc_lcnphy_txrx_spur_avoidance_mode(pi, false);
1606 pi_lcn->lcnphy_spurmod = 0; 1606 pi_lcn->lcnphy_spurmod = false;
1607 mod_phy_reg(pi, 0x424, (0xff << 8), (0x1b) << 8); 1607 mod_phy_reg(pi, 0x424, (0xff << 8), (0x1b) << 8);
1608 1608
1609 write_phy_reg(pi, 0x425, 0x5907); 1609 write_phy_reg(pi, 0x425, 0x5907);
@@ -1616,7 +1616,7 @@ wlc_lcnphy_set_chanspec_tweaks(struct brcms_phy *pi, u16 chanspec)
1616 write_phy_reg(pi, 0x942, 0); 1616 write_phy_reg(pi, 0x942, 0);
1617 wlc_lcnphy_txrx_spur_avoidance_mode(pi, true); 1617 wlc_lcnphy_txrx_spur_avoidance_mode(pi, true);
1618 1618
1619 pi_lcn->lcnphy_spurmod = 0; 1619 pi_lcn->lcnphy_spurmod = false;
1620 mod_phy_reg(pi, 0x424, (0xff << 8), (0x1f) << 8); 1620 mod_phy_reg(pi, 0x424, (0xff << 8), (0x1f) << 8);
1621 1621
1622 write_phy_reg(pi, 0x425, 0x590a); 1622 write_phy_reg(pi, 0x425, 0x590a);
@@ -2325,7 +2325,7 @@ static s8 wlc_lcnphy_tempcompensated_txpwrctrl(struct brcms_phy *pi)
2325{ 2325{
2326 s8 index, delta_brd, delta_temp, new_index, tempcorrx; 2326 s8 index, delta_brd, delta_temp, new_index, tempcorrx;
2327 s16 manp, meas_temp, temp_diff; 2327 s16 manp, meas_temp, temp_diff;
2328 bool neg = 0; 2328 bool neg = false;
2329 u16 temp; 2329 u16 temp;
2330 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; 2330 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
2331 2331
@@ -2348,7 +2348,7 @@ static s8 wlc_lcnphy_tempcompensated_txpwrctrl(struct brcms_phy *pi)
2348 manp = LCNPHY_TEMPSENSE(pi_lcn->lcnphy_rawtempsense); 2348 manp = LCNPHY_TEMPSENSE(pi_lcn->lcnphy_rawtempsense);
2349 temp_diff = manp - meas_temp; 2349 temp_diff = manp - meas_temp;
2350 if (temp_diff < 0) { 2350 if (temp_diff < 0) {
2351 neg = 1; 2351 neg = true;
2352 temp_diff = -temp_diff; 2352 temp_diff = -temp_diff;
2353 } 2353 }
2354 2354
@@ -3682,8 +3682,8 @@ wlc_lcnphy_a1(struct brcms_phy *pi, int cal_type, int num_levels,
3682 wlc_lcnphy_set_cc(pi, cal_type, phy_c15, phy_c16); 3682 wlc_lcnphy_set_cc(pi, cal_type, phy_c15, phy_c16);
3683 udelay(20); 3683 udelay(20);
3684 for (phy_c8 = 0; phy_c7 != 0 && phy_c8 < num_levels; phy_c8++) { 3684 for (phy_c8 = 0; phy_c7 != 0 && phy_c8 < num_levels; phy_c8++) {
3685 phy_c23 = 1; 3685 phy_c23 = true;
3686 phy_c22 = 0; 3686 phy_c22 = false;
3687 switch (cal_type) { 3687 switch (cal_type) {
3688 case 0: 3688 case 0:
3689 phy_c10 = 511; 3689 phy_c10 = 511;
@@ -3701,18 +3701,18 @@ wlc_lcnphy_a1(struct brcms_phy *pi, int cal_type, int num_levels,
3701 3701
3702 phy_c9 = read_phy_reg(pi, 0x93d); 3702 phy_c9 = read_phy_reg(pi, 0x93d);
3703 phy_c9 = 2 * phy_c9; 3703 phy_c9 = 2 * phy_c9;
3704 phy_c24 = 0; 3704 phy_c24 = false;
3705 phy_c5 = 7; 3705 phy_c5 = 7;
3706 phy_c25 = 1; 3706 phy_c25 = true;
3707 while (1) { 3707 while (1) {
3708 write_radio_reg(pi, RADIO_2064_REG026, 3708 write_radio_reg(pi, RADIO_2064_REG026,
3709 (phy_c5 & 0x7) | ((phy_c5 & 0x7) << 4)); 3709 (phy_c5 & 0x7) | ((phy_c5 & 0x7) << 4));
3710 udelay(50); 3710 udelay(50);
3711 phy_c22 = 0; 3711 phy_c22 = false;
3712 ptr[130] = 0; 3712 ptr[130] = 0;
3713 wlc_lcnphy_samp_cap(pi, 1, phy_c9, &ptr[0], 2); 3713 wlc_lcnphy_samp_cap(pi, 1, phy_c9, &ptr[0], 2);
3714 if (ptr[130] == 1) 3714 if (ptr[130] == 1)
3715 phy_c22 = 1; 3715 phy_c22 = true;
3716 if (phy_c22) 3716 if (phy_c22)
3717 phy_c5 -= 1; 3717 phy_c5 -= 1;
3718 if ((phy_c22 != phy_c24) && (!phy_c25)) 3718 if ((phy_c22 != phy_c24) && (!phy_c25))
@@ -3722,7 +3722,7 @@ wlc_lcnphy_a1(struct brcms_phy *pi, int cal_type, int num_levels,
3722 if (phy_c5 <= 0 || phy_c5 >= 7) 3722 if (phy_c5 <= 0 || phy_c5 >= 7)
3723 break; 3723 break;
3724 phy_c24 = phy_c22; 3724 phy_c24 = phy_c22;
3725 phy_c25 = 0; 3725 phy_c25 = false;
3726 } 3726 }
3727 3727
3728 if (phy_c5 < 0) 3728 if (phy_c5 < 0)
@@ -3773,10 +3773,10 @@ wlc_lcnphy_a1(struct brcms_phy *pi, int cal_type, int num_levels,
3773 phy_c13 = phy_c11; 3773 phy_c13 = phy_c11;
3774 phy_c14 = phy_c12; 3774 phy_c14 = phy_c12;
3775 } 3775 }
3776 phy_c23 = 0; 3776 phy_c23 = false;
3777 } 3777 }
3778 } 3778 }
3779 phy_c23 = 1; 3779 phy_c23 = true;
3780 phy_c15 = phy_c13; 3780 phy_c15 = phy_c13;
3781 phy_c16 = phy_c14; 3781 phy_c16 = phy_c14;
3782 phy_c7 = phy_c7 >> 1; 3782 phy_c7 = phy_c7 >> 1;
@@ -3966,7 +3966,7 @@ s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode)
3966{ 3966{
3967 u16 tempsenseval1, tempsenseval2; 3967 u16 tempsenseval1, tempsenseval2;
3968 s16 avg = 0; 3968 s16 avg = 0;
3969 bool suspend = 0; 3969 bool suspend = false;
3970 3970
3971 if (mode == 1) { 3971 if (mode == 1) {
3972 suspend = (0 == (bcma_read32(pi->d11core, 3972 suspend = (0 == (bcma_read32(pi->d11core,
@@ -4008,7 +4008,7 @@ u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode)
4008{ 4008{
4009 u16 tempsenseval1, tempsenseval2; 4009 u16 tempsenseval1, tempsenseval2;
4010 s32 avg = 0; 4010 s32 avg = 0;
4011 bool suspend = 0; 4011 bool suspend = false;
4012 u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi); 4012 u16 SAVE_txpwrctrl = wlc_lcnphy_get_tx_pwr_ctrl(pi);
4013 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy; 4013 struct brcms_phy_lcnphy *pi_lcn = pi->u.pi_lcnphy;
4014 4014
@@ -4076,7 +4076,7 @@ s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode)
4076{ 4076{
4077 u16 vbatsenseval; 4077 u16 vbatsenseval;
4078 s32 avg = 0; 4078 s32 avg = 0;
4079 bool suspend = 0; 4079 bool suspend = false;
4080 4080
4081 if (mode == 1) { 4081 if (mode == 1) {
4082 suspend = (0 == (bcma_read32(pi->d11core, 4082 suspend = (0 == (bcma_read32(pi->d11core,
diff --git a/drivers/net/wireless/iwmc3200wifi/main.c b/drivers/net/wireless/iwmc3200wifi/main.c
index 98a179f98ea1..c3a1b5deb0d1 100644
--- a/drivers/net/wireless/iwmc3200wifi/main.c
+++ b/drivers/net/wireless/iwmc3200wifi/main.c
@@ -130,7 +130,7 @@ static void iwm_disconnect_work(struct work_struct *work)
130 iwm_invalidate_mlme_profile(iwm); 130 iwm_invalidate_mlme_profile(iwm);
131 131
132 clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status); 132 clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status);
133 iwm->umac_profile_active = 0; 133 iwm->umac_profile_active = false;
134 memset(iwm->bssid, 0, ETH_ALEN); 134 memset(iwm->bssid, 0, ETH_ALEN);
135 iwm->channel = 0; 135 iwm->channel = 0;
136 136
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c
index a414768f40f1..7d708f4395f3 100644
--- a/drivers/net/wireless/iwmc3200wifi/rx.c
+++ b/drivers/net/wireless/iwmc3200wifi/rx.c
@@ -660,7 +660,7 @@ static int iwm_mlme_profile_invalidate(struct iwm_priv *iwm, u8 *buf,
660 clear_bit(IWM_STATUS_SME_CONNECTING, &iwm->status); 660 clear_bit(IWM_STATUS_SME_CONNECTING, &iwm->status);
661 clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status); 661 clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status);
662 662
663 iwm->umac_profile_active = 0; 663 iwm->umac_profile_active = false;
664 memset(iwm->bssid, 0, ETH_ALEN); 664 memset(iwm->bssid, 0, ETH_ALEN);
665 iwm->channel = 0; 665 iwm->channel = 0;
666 666
@@ -735,7 +735,7 @@ static int iwm_mlme_update_sta_table(struct iwm_priv *iwm, u8 *buf,
735 umac_sta->mac_addr, 735 umac_sta->mac_addr,
736 umac_sta->flags & UMAC_STA_FLAG_QOS); 736 umac_sta->flags & UMAC_STA_FLAG_QOS);
737 737
738 sta->valid = 1; 738 sta->valid = true;
739 sta->qos = umac_sta->flags & UMAC_STA_FLAG_QOS; 739 sta->qos = umac_sta->flags & UMAC_STA_FLAG_QOS;
740 sta->color = GET_VAL8(umac_sta->sta_id, LMAC_STA_COLOR); 740 sta->color = GET_VAL8(umac_sta->sta_id, LMAC_STA_COLOR);
741 memcpy(sta->addr, umac_sta->mac_addr, ETH_ALEN); 741 memcpy(sta->addr, umac_sta->mac_addr, ETH_ALEN);
@@ -750,12 +750,12 @@ static int iwm_mlme_update_sta_table(struct iwm_priv *iwm, u8 *buf,
750 sta = &iwm->sta_table[GET_VAL8(umac_sta->sta_id, LMAC_STA_ID)]; 750 sta = &iwm->sta_table[GET_VAL8(umac_sta->sta_id, LMAC_STA_ID)];
751 751
752 if (!memcmp(sta->addr, umac_sta->mac_addr, ETH_ALEN)) 752 if (!memcmp(sta->addr, umac_sta->mac_addr, ETH_ALEN))
753 sta->valid = 0; 753 sta->valid = false;
754 754
755 break; 755 break;
756 case UMAC_OPCODE_CLEAR_ALL: 756 case UMAC_OPCODE_CLEAR_ALL:
757 for (i = 0; i < IWM_STA_TABLE_NUM; i++) 757 for (i = 0; i < IWM_STA_TABLE_NUM; i++)
758 iwm->sta_table[i].valid = 0; 758 iwm->sta_table[i].valid = false;
759 759
760 break; 760 break;
761 default: 761 default:
@@ -1203,7 +1203,7 @@ static int iwm_ntf_wifi_if_wrapper(struct iwm_priv *iwm, u8 *buf,
1203 1203
1204 switch (hdr->oid) { 1204 switch (hdr->oid) {
1205 case UMAC_WIFI_IF_CMD_SET_PROFILE: 1205 case UMAC_WIFI_IF_CMD_SET_PROFILE:
1206 iwm->umac_profile_active = 1; 1206 iwm->umac_profile_active = true;
1207 break; 1207 break;
1208 default: 1208 default:
1209 break; 1209 break;
@@ -1363,7 +1363,7 @@ static int iwm_rx_handle_nonwifi(struct iwm_priv *iwm, u8 *buf,
1363 */ 1363 */
1364 list_for_each_entry(cmd, &iwm->nonwifi_pending_cmd, pending) 1364 list_for_each_entry(cmd, &iwm->nonwifi_pending_cmd, pending)
1365 if (cmd->seq_num == seq_num) { 1365 if (cmd->seq_num == seq_num) {
1366 cmd->resp_received = 1; 1366 cmd->resp_received = true;
1367 cmd->buf.len = buf_size; 1367 cmd->buf.len = buf_size;
1368 memcpy(cmd->buf.hdr, buf, buf_size); 1368 memcpy(cmd->buf.hdr, buf, buf_size);
1369 wake_up_interruptible(&iwm->nonwifi_queue); 1369 wake_up_interruptible(&iwm->nonwifi_queue);
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c
index e26935179861..3f7bf4d912b6 100644
--- a/drivers/net/wireless/libertas/if_cs.c
+++ b/drivers/net/wireless/libertas/if_cs.c
@@ -859,7 +859,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
859 * Most of the libertas cards can do unaligned register access, but some 859 * Most of the libertas cards can do unaligned register access, but some
860 * weird ones cannot. That's especially true for the CF8305 card. 860 * weird ones cannot. That's especially true for the CF8305 card.
861 */ 861 */
862 card->align_regs = 0; 862 card->align_regs = false;
863 863
864 card->model = get_model(p_dev->manf_id, p_dev->card_id); 864 card->model = get_model(p_dev->manf_id, p_dev->card_id);
865 if (card->model == MODEL_UNKNOWN) { 865 if (card->model == MODEL_UNKNOWN) {
@@ -871,7 +871,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
871 /* Check if we have a current silicon */ 871 /* Check if we have a current silicon */
872 prod_id = if_cs_read8(card, IF_CS_PRODUCT_ID); 872 prod_id = if_cs_read8(card, IF_CS_PRODUCT_ID);
873 if (card->model == MODEL_8305) { 873 if (card->model == MODEL_8305) {
874 card->align_regs = 1; 874 card->align_regs = true;
875 if (prod_id < IF_CS_CF8305_B1_REV) { 875 if (prod_id < IF_CS_CF8305_B1_REV) {
876 pr_err("8305 rev B0 and older are not supported\n"); 876 pr_err("8305 rev B0 and older are not supported\n");
877 ret = -ENODEV; 877 ret = -ENODEV;
diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c
index ceb51b6e6702..a03457292c88 100644
--- a/drivers/net/wireless/libertas_tf/main.c
+++ b/drivers/net/wireless/libertas_tf/main.c
@@ -719,11 +719,11 @@ void lbtf_bcn_sent(struct lbtf_private *priv)
719 return; 719 return;
720 720
721 if (skb_queue_empty(&priv->bc_ps_buf)) { 721 if (skb_queue_empty(&priv->bc_ps_buf)) {
722 bool tx_buff_bc = 0; 722 bool tx_buff_bc = false;
723 723
724 while ((skb = ieee80211_get_buffered_bc(priv->hw, priv->vif))) { 724 while ((skb = ieee80211_get_buffered_bc(priv->hw, priv->vif))) {
725 skb_queue_tail(&priv->bc_ps_buf, skb); 725 skb_queue_tail(&priv->bc_ps_buf, skb);
726 tx_buff_bc = 1; 726 tx_buff_bc = true;
727 } 727 }
728 if (tx_buff_bc) { 728 if (tx_buff_bc) {
729 ieee80211_stop_queues(priv->hw); 729 ieee80211_stop_queues(priv->hw);
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 52bcdf40d5bd..4b9e730d2c8a 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -708,7 +708,7 @@ static int mac80211_hwsim_start(struct ieee80211_hw *hw)
708{ 708{
709 struct mac80211_hwsim_data *data = hw->priv; 709 struct mac80211_hwsim_data *data = hw->priv;
710 wiphy_debug(hw->wiphy, "%s\n", __func__); 710 wiphy_debug(hw->wiphy, "%s\n", __func__);
711 data->started = 1; 711 data->started = true;
712 return 0; 712 return 0;
713} 713}
714 714
@@ -716,7 +716,7 @@ static int mac80211_hwsim_start(struct ieee80211_hw *hw)
716static void mac80211_hwsim_stop(struct ieee80211_hw *hw) 716static void mac80211_hwsim_stop(struct ieee80211_hw *hw)
717{ 717{
718 struct mac80211_hwsim_data *data = hw->priv; 718 struct mac80211_hwsim_data *data = hw->priv;
719 data->started = 0; 719 data->started = false;
720 del_timer(&data->beacon_timer); 720 del_timer(&data->beacon_timer);
721 wiphy_debug(hw->wiphy, "%s\n", __func__); 721 wiphy_debug(hw->wiphy, "%s\n", __func__);
722} 722}
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 995695c28d5c..a53fbfe4c286 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -738,10 +738,10 @@ static int mwl8k_load_firmware(struct ieee80211_hw *hw)
738 738
739 ready_code = ioread32(priv->regs + MWL8K_HIU_INT_CODE); 739 ready_code = ioread32(priv->regs + MWL8K_HIU_INT_CODE);
740 if (ready_code == MWL8K_FWAP_READY) { 740 if (ready_code == MWL8K_FWAP_READY) {
741 priv->ap_fw = 1; 741 priv->ap_fw = true;
742 break; 742 break;
743 } else if (ready_code == MWL8K_FWSTA_READY) { 743 } else if (ready_code == MWL8K_FWSTA_READY) {
744 priv->ap_fw = 0; 744 priv->ap_fw = false;
745 break; 745 break;
746 } 746 }
747 747
@@ -5517,8 +5517,8 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
5517 INIT_LIST_HEAD(&priv->vif_list); 5517 INIT_LIST_HEAD(&priv->vif_list);
5518 5518
5519 /* Set default radio state and preamble */ 5519 /* Set default radio state and preamble */
5520 priv->radio_on = 0; 5520 priv->radio_on = false;
5521 priv->radio_short_preamble = 0; 5521 priv->radio_short_preamble = false;
5522 5522
5523 /* Finalize join worker */ 5523 /* Finalize join worker */
5524 INIT_WORK(&priv->finalize_join_worker, mwl8k_finalize_join_worker); 5524 INIT_WORK(&priv->finalize_join_worker, mwl8k_finalize_join_worker);
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c
index d81a6021a30f..74c021436704 100644
--- a/drivers/net/wireless/rtlwifi/base.c
+++ b/drivers/net/wireless/rtlwifi/base.c
@@ -396,7 +396,7 @@ void rtl_init_rfkill(struct ieee80211_hw *hw)
396 u8 valid = 0; 396 u8 valid = 0;
397 397
398 /*set init state to on */ 398 /*set init state to on */
399 rtlpriv->rfkill.rfkill_state = 1; 399 rtlpriv->rfkill.rfkill_state = true;
400 wiphy_rfkill_set_hw_state(hw->wiphy, 0); 400 wiphy_rfkill_set_hw_state(hw->wiphy, 0);
401 401
402 radio_state = rtlpriv->cfg->ops->radio_onoff_checking(hw, &valid); 402 radio_state = rtlpriv->cfg->ops->radio_onoff_checking(hw, &valid);
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
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c b/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
index f2aa33dc4d78..89ef6982ce50 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c
@@ -98,9 +98,9 @@ int rtl92c_init_sw_vars(struct ieee80211_hw *hw)
98 98
99 rtl8192ce_bt_reg_init(hw); 99 rtl8192ce_bt_reg_init(hw);
100 100
101 rtlpriv->dm.dm_initialgain_enable = 1; 101 rtlpriv->dm.dm_initialgain_enable = true;
102 rtlpriv->dm.dm_flag = 0; 102 rtlpriv->dm.dm_flag = 0;
103 rtlpriv->dm.disable_framebursting = 0; 103 rtlpriv->dm.disable_framebursting = false;
104 rtlpriv->dm.thermalvalue = 0; 104 rtlpriv->dm.thermalvalue = 0;
105 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); 105 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13);
106 106
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
index 4ed973a3aa17..124cf633861c 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
@@ -2436,7 +2436,7 @@ bool rtl92cu_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 * valid)
2436 "%x\n", ppsc->hwradiooff, e_rfpowerstate_toset)); 2436 "%x\n", ppsc->hwradiooff, e_rfpowerstate_toset));
2437 } 2437 }
2438 if (actuallyset) { 2438 if (actuallyset) {
2439 ppsc->hwradiooff = 1; 2439 ppsc->hwradiooff = true;
2440 if (e_rfpowerstate_toset == ERFON) { 2440 if (e_rfpowerstate_toset == ERFON) {
2441 if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) && 2441 if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) &&
2442 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM)) 2442 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM))
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
index 94a3e1706158..3527c7957b45 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
@@ -57,9 +57,9 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw)
57 const struct firmware *firmware; 57 const struct firmware *firmware;
58 int err; 58 int err;
59 59
60 rtlpriv->dm.dm_initialgain_enable = 1; 60 rtlpriv->dm.dm_initialgain_enable = true;
61 rtlpriv->dm.dm_flag = 0; 61 rtlpriv->dm.dm_flag = 0;
62 rtlpriv->dm.disable_framebursting = 0; 62 rtlpriv->dm.disable_framebursting = false;
63 rtlpriv->dm.thermalvalue = 0; 63 rtlpriv->dm.thermalvalue = 0;
64 rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug; 64 rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug;
65 rtlpriv->rtlhal.pfirmware = vmalloc(0x4000); 65 rtlpriv->rtlhal.pfirmware = vmalloc(0x4000);
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/sw.c b/drivers/net/wireless/rtlwifi/rtl8192de/sw.c
index 149493f4c25c..7911c9c87085 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192de/sw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192de/sw.c
@@ -99,9 +99,9 @@ static int rtl92d_init_sw_vars(struct ieee80211_hw *hw)
99 99
100 rtlpriv->dm.dm_initialgain_enable = true; 100 rtlpriv->dm.dm_initialgain_enable = true;
101 rtlpriv->dm.dm_flag = 0; 101 rtlpriv->dm.dm_flag = 0;
102 rtlpriv->dm.disable_framebursting = 0; 102 rtlpriv->dm.disable_framebursting = false;
103 rtlpriv->dm.thermalvalue = 0; 103 rtlpriv->dm.thermalvalue = 0;
104 rtlpriv->dm.useramask = 1; 104 rtlpriv->dm.useramask = true;
105 105
106 /* dual mac */ 106 /* dual mac */
107 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) 107 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G)
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c
index 92f49d522c56..78723cf59491 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c
@@ -98,9 +98,9 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw)
98 int err = 0; 98 int err = 0;
99 u16 earlyrxthreshold = 7; 99 u16 earlyrxthreshold = 7;
100 100
101 rtlpriv->dm.dm_initialgain_enable = 1; 101 rtlpriv->dm.dm_initialgain_enable = true;
102 rtlpriv->dm.dm_flag = 0; 102 rtlpriv->dm.dm_flag = 0;
103 rtlpriv->dm.disable_framebursting = 0; 103 rtlpriv->dm.disable_framebursting = false;
104 rtlpriv->dm.thermalvalue = 0; 104 rtlpriv->dm.thermalvalue = 0;
105 rtlpriv->dm.useramask = true; 105 rtlpriv->dm.useramask = true;
106 106