mirror of
https://github.com/t2linux/kernel.git
synced 2026-04-30 13:48:59 -07:00
net: fix assignment of 0/1 to bool variables.
DaveM said: Please, this kind of stuff rots forever and not using bool properly drives me crazy. Joe Perches <joe@perches.com> gave me the spatch script: @@ bool b; @@ -b = 0 +b = false @@ bool b; @@ -b = 1 +b = true I merely installed coccinelle, read the documentation and took credit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a8e510f682
commit
3db1cd5c05
@@ -6425,13 +6425,13 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
|
||||
bool hwbug = false;
|
||||
|
||||
if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8)
|
||||
hwbug = 1;
|
||||
hwbug = true;
|
||||
|
||||
if (tg3_4g_overflow_test(map, len))
|
||||
hwbug = 1;
|
||||
hwbug = true;
|
||||
|
||||
if (tg3_40bit_overflow_test(tp, map, len))
|
||||
hwbug = 1;
|
||||
hwbug = true;
|
||||
|
||||
if (tp->dma_limit) {
|
||||
u32 prvidx = *entry;
|
||||
@@ -6464,7 +6464,7 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
|
||||
*budget -= 1;
|
||||
*entry = NEXT_TX(*entry);
|
||||
} else {
|
||||
hwbug = 1;
|
||||
hwbug = true;
|
||||
tnapi->tx_buffers[prvidx].fragmented = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -723,7 +723,7 @@ void
|
||||
bnad_cb_ethport_link_status(struct bnad *bnad,
|
||||
enum bna_link_status link_status)
|
||||
{
|
||||
bool link_up = 0;
|
||||
bool link_up = false;
|
||||
|
||||
link_up = (link_status == BNA_LINK_UP) || (link_status == BNA_CEE_UP);
|
||||
|
||||
@@ -3190,7 +3190,7 @@ bnad_pci_init(struct bnad *bnad,
|
||||
goto disable_device;
|
||||
if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
|
||||
!dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
|
||||
*using_dac = 1;
|
||||
*using_dac = true;
|
||||
} else {
|
||||
err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
|
||||
if (err) {
|
||||
@@ -3199,7 +3199,7 @@ bnad_pci_init(struct bnad *bnad,
|
||||
if (err)
|
||||
goto release_regions;
|
||||
}
|
||||
*using_dac = 0;
|
||||
*using_dac = false;
|
||||
}
|
||||
pci_set_master(pdev);
|
||||
return 0;
|
||||
|
||||
@@ -5191,7 +5191,7 @@ de4x5_parse_params(struct net_device *dev)
|
||||
struct de4x5_private *lp = netdev_priv(dev);
|
||||
char *p, *q, t;
|
||||
|
||||
lp->params.fdx = 0;
|
||||
lp->params.fdx = false;
|
||||
lp->params.autosense = AUTO;
|
||||
|
||||
if (args == NULL) return;
|
||||
@@ -5201,7 +5201,7 @@ de4x5_parse_params(struct net_device *dev)
|
||||
t = *q;
|
||||
*q = '\0';
|
||||
|
||||
if (strstr(p, "fdx") || strstr(p, "FDX")) lp->params.fdx = 1;
|
||||
if (strstr(p, "fdx") || strstr(p, "FDX")) lp->params.fdx = true;
|
||||
|
||||
if (strstr(p, "autosense") || strstr(p, "AUTOSENSE")) {
|
||||
if (strstr(p, "TP")) {
|
||||
|
||||
@@ -1185,7 +1185,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
|
||||
if (global_quad_port_a != 0)
|
||||
adapter->eeprom_wol = 0;
|
||||
else
|
||||
adapter->quad_port_a = 1;
|
||||
adapter->quad_port_a = true;
|
||||
/* Reset for multiple quad port adapters */
|
||||
if (++global_quad_port_a == 4)
|
||||
global_quad_port_a = 0;
|
||||
@@ -1679,7 +1679,7 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
|
||||
* need this to apply a workaround later in the send path. */
|
||||
if (hw->mac_type == e1000_82544 &&
|
||||
hw->bus_type == e1000_bus_type_pcix)
|
||||
adapter->pcix_82544 = 1;
|
||||
adapter->pcix_82544 = true;
|
||||
|
||||
ew32(TCTL, tctl);
|
||||
|
||||
@@ -2002,7 +2002,7 @@ static void e1000_clean_tx_ring(struct e1000_adapter *adapter,
|
||||
|
||||
tx_ring->next_to_use = 0;
|
||||
tx_ring->next_to_clean = 0;
|
||||
tx_ring->last_tx_tso = 0;
|
||||
tx_ring->last_tx_tso = false;
|
||||
|
||||
writel(0, hw->hw_addr + tx_ring->tdh);
|
||||
writel(0, hw->hw_addr + tx_ring->tdt);
|
||||
@@ -2851,7 +2851,7 @@ static int e1000_tx_map(struct e1000_adapter *adapter,
|
||||
* DMA'd to the controller */
|
||||
if (!skb->data_len && tx_ring->last_tx_tso &&
|
||||
!skb_is_gso(skb)) {
|
||||
tx_ring->last_tx_tso = 0;
|
||||
tx_ring->last_tx_tso = false;
|
||||
size -= 4;
|
||||
}
|
||||
|
||||
@@ -3219,7 +3219,7 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
|
||||
|
||||
if (likely(tso)) {
|
||||
if (likely(hw->mac_type != e1000_82544))
|
||||
tx_ring->last_tx_tso = 1;
|
||||
tx_ring->last_tx_tso = true;
|
||||
tx_flags |= E1000_TX_FLAGS_TSO;
|
||||
} else if (likely(e1000_tx_csum(adapter, tx_ring, skb)))
|
||||
tx_flags |= E1000_TX_FLAGS_CSUM;
|
||||
|
||||
@@ -859,7 +859,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
|
||||
u32 length, staterr;
|
||||
unsigned int i;
|
||||
int cleaned_count = 0;
|
||||
bool cleaned = 0;
|
||||
bool cleaned = false;
|
||||
unsigned int total_rx_bytes = 0, total_rx_packets = 0;
|
||||
|
||||
i = rx_ring->next_to_clean;
|
||||
@@ -888,7 +888,7 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
|
||||
|
||||
next_buffer = &rx_ring->buffer_info[i];
|
||||
|
||||
cleaned = 1;
|
||||
cleaned = true;
|
||||
cleaned_count++;
|
||||
dma_unmap_single(&pdev->dev,
|
||||
buffer_info->dma,
|
||||
@@ -1157,7 +1157,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter)
|
||||
* Detect a transmit hang in hardware, this serializes the
|
||||
* check with the clearing of time_stamp and movement of i
|
||||
*/
|
||||
adapter->detect_tx_hung = 0;
|
||||
adapter->detect_tx_hung = false;
|
||||
if (tx_ring->buffer_info[i].time_stamp &&
|
||||
time_after(jiffies, tx_ring->buffer_info[i].time_stamp
|
||||
+ (adapter->tx_timeout_factor * HZ)) &&
|
||||
@@ -1192,7 +1192,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
|
||||
unsigned int i, j;
|
||||
u32 length, staterr;
|
||||
int cleaned_count = 0;
|
||||
bool cleaned = 0;
|
||||
bool cleaned = false;
|
||||
unsigned int total_rx_bytes = 0, total_rx_packets = 0;
|
||||
|
||||
i = rx_ring->next_to_clean;
|
||||
@@ -1218,7 +1218,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
|
||||
|
||||
next_buffer = &rx_ring->buffer_info[i];
|
||||
|
||||
cleaned = 1;
|
||||
cleaned = true;
|
||||
cleaned_count++;
|
||||
dma_unmap_single(&pdev->dev, buffer_info->dma,
|
||||
adapter->rx_ps_bsize0, DMA_FROM_DEVICE);
|
||||
@@ -4257,7 +4257,7 @@ static void e1000_print_link_info(struct e1000_adapter *adapter)
|
||||
static bool e1000e_has_link(struct e1000_adapter *adapter)
|
||||
{
|
||||
struct e1000_hw *hw = &adapter->hw;
|
||||
bool link_active = 0;
|
||||
bool link_active = false;
|
||||
s32 ret_val = 0;
|
||||
|
||||
/*
|
||||
@@ -4272,7 +4272,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
|
||||
ret_val = hw->mac.ops.check_for_link(hw);
|
||||
link_active = !hw->mac.get_link_status;
|
||||
} else {
|
||||
link_active = 1;
|
||||
link_active = true;
|
||||
}
|
||||
break;
|
||||
case e1000_media_type_fiber:
|
||||
@@ -4371,7 +4371,7 @@ static void e1000_watchdog_task(struct work_struct *work)
|
||||
|
||||
if (link) {
|
||||
if (!netif_carrier_ok(netdev)) {
|
||||
bool txb2b = 1;
|
||||
bool txb2b = true;
|
||||
|
||||
/* Cancel scheduled suspend requests. */
|
||||
pm_runtime_resume(netdev->dev.parent);
|
||||
@@ -4404,11 +4404,11 @@ static void e1000_watchdog_task(struct work_struct *work)
|
||||
adapter->tx_timeout_factor = 1;
|
||||
switch (adapter->link_speed) {
|
||||
case SPEED_10:
|
||||
txb2b = 0;
|
||||
txb2b = false;
|
||||
adapter->tx_timeout_factor = 16;
|
||||
break;
|
||||
case SPEED_100:
|
||||
txb2b = 0;
|
||||
txb2b = false;
|
||||
adapter->tx_timeout_factor = 10;
|
||||
break;
|
||||
}
|
||||
@@ -4544,7 +4544,7 @@ link_up:
|
||||
e1000e_flush_descriptors(adapter);
|
||||
|
||||
/* Force detection of hung controller every watchdog period */
|
||||
adapter->detect_tx_hung = 1;
|
||||
adapter->detect_tx_hung = true;
|
||||
|
||||
/*
|
||||
* With 82571 controllers, LAA may be overwritten due to controller
|
||||
@@ -6208,7 +6208,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
|
||||
|
||||
/* Initialize link parameters. User can change them with ethtool */
|
||||
adapter->hw.mac.autoneg = 1;
|
||||
adapter->fc_autoneg = 1;
|
||||
adapter->fc_autoneg = true;
|
||||
adapter->hw.fc.requested_mode = e1000_fc_default;
|
||||
adapter->hw.fc.current_mode = e1000_fc_default;
|
||||
adapter->hw.phy.autoneg_advertised = 0x2f;
|
||||
|
||||
@@ -228,7 +228,7 @@ ixgb_up(struct ixgb_adapter *adapter)
|
||||
if (IXGB_READ_REG(&adapter->hw, STATUS) & IXGB_STATUS_PCIX_MODE) {
|
||||
err = pci_enable_msi(adapter->pdev);
|
||||
if (!err) {
|
||||
adapter->have_msi = 1;
|
||||
adapter->have_msi = true;
|
||||
irq_flags = 0;
|
||||
}
|
||||
/* proceed to try to request regular interrupt */
|
||||
|
||||
@@ -2599,7 +2599,7 @@ s32 ixgbe_enable_rx_dma_generic(struct ixgbe_hw *hw, u32 regval)
|
||||
s32 ixgbe_blink_led_start_generic(struct ixgbe_hw *hw, u32 index)
|
||||
{
|
||||
ixgbe_link_speed speed = 0;
|
||||
bool link_up = 0;
|
||||
bool link_up = false;
|
||||
u32 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC);
|
||||
u32 led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
|
||||
|
||||
|
||||
@@ -4023,7 +4023,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
|
||||
|
||||
/* Mark all the VFs as inactive */
|
||||
for (i = 0 ; i < adapter->num_vfs; i++)
|
||||
adapter->vfinfo[i].clear_to_send = 0;
|
||||
adapter->vfinfo[i].clear_to_send = false;
|
||||
|
||||
/* ping all the active vfs to let them know we are going down */
|
||||
ixgbe_ping_all_vfs(adapter);
|
||||
|
||||
@@ -1214,7 +1214,7 @@ s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
|
||||
u32 max_retry = 10;
|
||||
u32 retry = 0;
|
||||
u16 swfw_mask = 0;
|
||||
bool nack = 1;
|
||||
bool nack = true;
|
||||
*data = 0;
|
||||
|
||||
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)
|
||||
static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data)
|
||||
{
|
||||
s32 i;
|
||||
bool bit = 0;
|
||||
bool bit = false;
|
||||
|
||||
for (i = 7; i >= 0; i--) {
|
||||
ixgbe_clock_in_i2c_bit(hw, &bit);
|
||||
@@ -1443,7 +1443,7 @@ static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data)
|
||||
s32 status = 0;
|
||||
s32 i;
|
||||
u32 i2cctl;
|
||||
bool bit = 0;
|
||||
bool bit = false;
|
||||
|
||||
for (i = 7; i >= 0; i--) {
|
||||
bit = (data >> i) & 0x1;
|
||||
@@ -1473,7 +1473,7 @@ static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw)
|
||||
u32 i = 0;
|
||||
u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
|
||||
u32 timeout = 10;
|
||||
bool ack = 1;
|
||||
bool ack = true;
|
||||
|
||||
ixgbe_raise_i2c_clk(hw, &i2cctl);
|
||||
|
||||
@@ -1646,9 +1646,9 @@ static bool ixgbe_get_i2c_data(u32 *i2cctl)
|
||||
bool data;
|
||||
|
||||
if (*i2cctl & IXGBE_I2C_DATA_IN)
|
||||
data = 1;
|
||||
data = true;
|
||||
else
|
||||
data = 0;
|
||||
data = false;
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -610,7 +610,7 @@ static void falcon_stats_complete(struct efx_nic *efx)
|
||||
if (!nic_data->stats_pending)
|
||||
return;
|
||||
|
||||
nic_data->stats_pending = 0;
|
||||
nic_data->stats_pending = false;
|
||||
if (*nic_data->stats_dma_done == FALCON_STATS_DONE) {
|
||||
rmb(); /* read the done flag before the stats */
|
||||
efx->mac_op->update_stats(efx);
|
||||
|
||||
@@ -496,7 +496,7 @@ static int siena_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len)
|
||||
rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type);
|
||||
if (rc)
|
||||
goto out;
|
||||
part->mcdi.updating = 1;
|
||||
part->mcdi.updating = true;
|
||||
}
|
||||
|
||||
/* 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,
|
||||
rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type);
|
||||
if (rc)
|
||||
goto out;
|
||||
part->mcdi.updating = 1;
|
||||
part->mcdi.updating = true;
|
||||
}
|
||||
|
||||
while (offset < end) {
|
||||
@@ -553,7 +553,7 @@ static int siena_mtd_sync(struct mtd_info *mtd)
|
||||
int rc = 0;
|
||||
|
||||
if (part->mcdi.updating) {
|
||||
part->mcdi.updating = 0;
|
||||
part->mcdi.updating = false;
|
||||
rc = efx_mcdi_nvram_update_finish(efx, part->mcdi.nvram_type);
|
||||
}
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ static int siena_probe_nvconfig(struct efx_nic *efx)
|
||||
static int siena_probe_nic(struct efx_nic *efx)
|
||||
{
|
||||
struct siena_nic_data *nic_data;
|
||||
bool already_attached = 0;
|
||||
bool already_attached = false;
|
||||
efx_oword_t reg;
|
||||
int rc;
|
||||
|
||||
|
||||
@@ -1256,7 +1256,7 @@ static void tile_net_stop_aux(struct net_device *dev)
|
||||
sizeof(dummy), NETIO_IPP_STOP_SHIM_OFF) < 0)
|
||||
panic("Failed to stop LIPP/LEPP!\n");
|
||||
|
||||
priv->partly_opened = 0;
|
||||
priv->partly_opened = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1507,7 +1507,7 @@ static int tile_net_open(struct net_device *dev)
|
||||
priv->network_cpus_count, priv->network_cpus_credits);
|
||||
#endif
|
||||
|
||||
priv->partly_opened = 1;
|
||||
priv->partly_opened = true;
|
||||
|
||||
} else {
|
||||
/* FIXME: Is this possible? */
|
||||
|
||||
@@ -662,7 +662,7 @@ static void xemaclite_rx_handler(struct net_device *dev)
|
||||
*/
|
||||
static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
|
||||
{
|
||||
bool tx_complete = 0;
|
||||
bool tx_complete = false;
|
||||
struct net_device *dev = dev_id;
|
||||
struct net_local *lp = netdev_priv(dev);
|
||||
void __iomem *base_addr = lp->base_addr;
|
||||
@@ -683,7 +683,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
|
||||
tx_status &= ~XEL_TSR_XMIT_ACTIVE_MASK;
|
||||
out_be32(base_addr + XEL_TSR_OFFSET, tx_status);
|
||||
|
||||
tx_complete = 1;
|
||||
tx_complete = true;
|
||||
}
|
||||
|
||||
/* Check if the Transmission for the second buffer is completed */
|
||||
@@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
|
||||
out_be32(base_addr + XEL_BUFFER_OFFSET + XEL_TSR_OFFSET,
|
||||
tx_status);
|
||||
|
||||
tx_complete = 1;
|
||||
tx_complete = true;
|
||||
}
|
||||
|
||||
/* If there was a Tx interrupt, call the Tx Handler */
|
||||
|
||||
@@ -562,7 +562,7 @@ void i2400m_tx_new(struct i2400m *i2400m)
|
||||
{
|
||||
struct device *dev = i2400m_dev(i2400m);
|
||||
struct i2400m_msg_hdr *tx_msg;
|
||||
bool try_head = 0;
|
||||
bool try_head = false;
|
||||
BUG_ON(i2400m->tx_msg != NULL);
|
||||
/*
|
||||
* In certain situations, TX queue might have enough space to
|
||||
@@ -580,7 +580,7 @@ try_head:
|
||||
else if (tx_msg == TAIL_FULL) {
|
||||
i2400m_tx_skip_tail(i2400m);
|
||||
d_printf(2, dev, "new TX message: tail full, trying head\n");
|
||||
try_head = 1;
|
||||
try_head = true;
|
||||
goto try_head;
|
||||
}
|
||||
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,
|
||||
unsigned long flags;
|
||||
size_t padded_len;
|
||||
void *ptr;
|
||||
bool try_head = 0;
|
||||
bool try_head = false;
|
||||
unsigned is_singleton = pl_type == I2400M_PT_RESET_WARM
|
||||
|| pl_type == I2400M_PT_RESET_COLD;
|
||||
|
||||
@@ -771,7 +771,7 @@ try_new:
|
||||
d_printf(2, dev, "pl append: tail full\n");
|
||||
i2400m_tx_close(i2400m);
|
||||
i2400m_tx_skip_tail(i2400m);
|
||||
try_head = 1;
|
||||
try_head = true;
|
||||
goto try_new;
|
||||
} else if (ptr == NULL) { /* All full */
|
||||
result = -ENOSPC;
|
||||
|
||||
@@ -1159,7 +1159,7 @@ ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
|
||||
*/
|
||||
if (fast && (ah->ah_radio != AR5K_RF2413) &&
|
||||
(ah->ah_radio != AR5K_RF5413))
|
||||
fast = 0;
|
||||
fast = false;
|
||||
|
||||
/* Disable sleep clock operation
|
||||
* to avoid register access delay on certain
|
||||
@@ -1185,7 +1185,7 @@ ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
|
||||
if (ret && fast) {
|
||||
ATH5K_DBG(ah, ATH5K_DEBUG_RESET,
|
||||
"DMA didn't stop, falling back to normal reset\n");
|
||||
fast = 0;
|
||||
fast = false;
|
||||
/* Non fatal, just continue with
|
||||
* normal reset */
|
||||
ret = 0;
|
||||
|
||||
@@ -361,7 +361,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
|
||||
ath6kl_dbg(ATH6KL_DBG_TRC, "failed to request P2P "
|
||||
"capabilities (%d) - assuming P2P not "
|
||||
"supported\n", ret);
|
||||
ar->p2p = 0;
|
||||
ar->p2p = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
|
||||
if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
|
||||
((eep->baseEepHeader.version & 0xff) > 0x0a) &&
|
||||
(eep->baseEepHeader.pwdclkind == 0))
|
||||
ah->need_an_top2_fixup = 1;
|
||||
ah->need_an_top2_fixup = true;
|
||||
|
||||
if ((common->bus_ops->ath_bus_type == ATH_USB) &&
|
||||
(AR_SREV_9280(ah)))
|
||||
|
||||
@@ -1929,7 +1929,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
|
||||
if (txq == sc->tx.txq_map[q] &&
|
||||
++txq->pending_frames > ATH_MAX_QDEPTH && !txq->stopped) {
|
||||
ieee80211_stop_queue(sc->hw, q);
|
||||
txq->stopped = 1;
|
||||
txq->stopped = true;
|
||||
}
|
||||
|
||||
ath_tx_start_dma(sc, skb, txctl);
|
||||
@@ -1986,7 +1986,7 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
|
||||
|
||||
if (txq->stopped && txq->pending_frames < ATH_MAX_QDEPTH) {
|
||||
ieee80211_wake_queue(sc->hw, q);
|
||||
txq->stopped = 0;
|
||||
txq->stopped = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -890,7 +890,7 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev,
|
||||
else
|
||||
ring->ops = &dma32_ops;
|
||||
if (for_tx) {
|
||||
ring->tx = 1;
|
||||
ring->tx = true;
|
||||
ring->current_slot = -1;
|
||||
} else {
|
||||
if (ring->index == 0) {
|
||||
@@ -1061,7 +1061,7 @@ void b43_dma_free(struct b43_wldev *dev)
|
||||
static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask)
|
||||
{
|
||||
u64 orig_mask = mask;
|
||||
bool fallback = 0;
|
||||
bool fallback = false;
|
||||
int err;
|
||||
|
||||
/* 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)
|
||||
}
|
||||
if (mask == DMA_BIT_MASK(64)) {
|
||||
mask = DMA_BIT_MASK(32);
|
||||
fallback = 1;
|
||||
fallback = true;
|
||||
continue;
|
||||
}
|
||||
if (mask == DMA_BIT_MASK(32)) {
|
||||
mask = DMA_BIT_MASK(30);
|
||||
fallback = 1;
|
||||
fallback = true;
|
||||
continue;
|
||||
}
|
||||
b43err(dev->wl, "The machine/kernel does not support "
|
||||
@@ -1307,7 +1307,7 @@ static int dma_tx_fragment(struct b43_dmaring *ring,
|
||||
memset(meta, 0, sizeof(*meta));
|
||||
|
||||
meta->skb = skb;
|
||||
meta->is_last_fragment = 1;
|
||||
meta->is_last_fragment = true;
|
||||
priv_info->bouncebuffer = NULL;
|
||||
|
||||
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)
|
||||
should_inject_overflow(ring)) {
|
||||
/* This TX ring is full. */
|
||||
ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb));
|
||||
ring->stopped = 1;
|
||||
ring->stopped = true;
|
||||
if (b43_debug(dev, B43_DBG_DMAVERBOSE)) {
|
||||
b43dbg(dev->wl, "Stopped TX ring %d\n", ring->index);
|
||||
}
|
||||
@@ -1585,7 +1585,7 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
|
||||
if (ring->stopped) {
|
||||
B43_WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME);
|
||||
ieee80211_wake_queue(dev->wl->hw, ring->queue_prio);
|
||||
ring->stopped = 0;
|
||||
ring->stopped = false;
|
||||
if (b43_debug(dev, B43_DBG_DMAVERBOSE)) {
|
||||
b43dbg(dev->wl, "Woke up TX ring %d\n", ring->index);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user