net: fix assignment of 0/1 to bool variables.
[deliverable/linux.git] / drivers / net / wimax / i2400m / tx.c
index 4b9ecb20deec28f5710ba4f82c78502be1b23d50..f20886ade1ccdf3147253e90f397263066eab431 100644 (file)
@@ -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;
This page took 0.026607 seconds and 5 git commands to generate.