]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: gdm72xx: use bool instead of custom-defined BOOLEAN
authorBen Chan <benchan@chromium.org>
Sat, 28 Jun 2014 06:17:25 +0000 (23:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jun 2014 21:41:04 +0000 (14:41 -0700)
Signed-off-by: Ben Chan <benchan@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_qos.c
drivers/staging/gdm72xx/gdm_qos.h

index df6f000534d4fc4b37e7a4f9cab3afb356fd50ac..732f009f572d9d51b78a78eac28e3d3333342072 100644 (file)
@@ -100,7 +100,7 @@ void gdm_qos_init(void *nic_ptr)
        for (i = 0; i < QOS_MAX; i++) {
                INIT_LIST_HEAD(&qcb->qos_list[i]);
                qcb->csr[i].qos_buf_count = 0;
-               qcb->csr[i].enabled = 0;
+               qcb->csr[i].enabled = false;
        }
 
        qcb->qos_list_cnt = 0;
@@ -127,7 +127,7 @@ void gdm_qos_release_list(void *nic_ptr)
 
        for (i = 0; i < QOS_MAX; i++) {
                qcb->csr[i].qos_buf_count = 0;
-               qcb->csr[i].enabled = 0;
+               qcb->csr[i].enabled = false;
        }
 
        qcb->qos_list_cnt = 0;
@@ -316,8 +316,8 @@ static u32 get_csr(struct qos_cb_s *qcb, u32 SFID, int mode)
 
        if (mode) {
                for (i = 0; i < QOS_MAX; i++) {
-                       if (qcb->csr[i].enabled == 0) {
-                               qcb->csr[i].enabled = 1;
+                       if (!qcb->csr[i].enabled) {
+                               qcb->csr[i].enabled = true;
                                qcb->qos_list_cnt++;
                                return i;
                        }
@@ -428,7 +428,7 @@ void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size)
                INIT_LIST_HEAD(&free_list);
 
                spin_lock_irqsave(&qcb->qos_lock, flags);
-               qcb->csr[index].enabled = 0;
+               qcb->csr[index].enabled = false;
                qcb->qos_list_cnt--;
                qcb->qos_limit_size = 254/qcb->qos_list_cnt;
 
index 6543cff2a8765aac6879b88c055266331cf59aad..50aa191f94c7a9cffef247997f9380a91d6bcb40 100644 (file)
@@ -18,8 +18,6 @@
 #include <linux/usb.h>
 #include <linux/list.h>
 
-#define BOOLEAN        u8
-
 #define QOS_MAX                                16
 #define IPTYPEOFSERVICE                        0x8000
 #define        PROTOCOL                        0x4000
@@ -34,7 +32,7 @@
 #define        IEEE802_1QVLANID                0x10
 
 struct gdm_wimax_csr_s {
-       BOOLEAN         enabled;
+       bool            enabled;
        u32             SFID;
        u8              qos_buf_count;
        u16             classifier_rule_en;