]> Pileus Git - ~andy/linux/commitdiff
staging: rtl8192e: use true and false for bool variables
authorValentina Manea <valentina.manea.m@gmail.com>
Tue, 29 Oct 2013 18:58:48 +0000 (20:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 16:08:45 +0000 (09:08 -0700)
This patch fixes coccinelle errors for bool variables
initialized with 1 or 0 instead of true and false.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_softmac.c

index a816a57030fe3c623044949825b1cc449621ae8a..a28584128c913dc29672dfacf7f96f8abe11be9a 100644 (file)
@@ -2213,7 +2213,7 @@ rtl8192_InitializeVariables(struct net_device  *dev)
        priv->MidHighPwrTHR_L2 = 0x40;
        priv->PwrDomainProtect = false;
 
-       priv->bfirst_after_down = 0;
+       priv->bfirst_after_down = false;
 }
 
 void rtl8192_EnableInterrupt(struct net_device *dev)
index bd8c9a2970fccab88f7838c18af229cdccf3b771..d93caca9657d2ea8bf50c633425128802649b5e7 100644 (file)
@@ -998,7 +998,7 @@ static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf)
        priv->bDriverIsGoingToUnload = true;
        priv->up = 0;
        priv->rtllib->ieee_up = 0;
-       priv->bfirst_after_down = 1;
+       priv->bfirst_after_down = true;
        RT_TRACE(COMP_DOWN, "==========>%s()\n", __func__);
        if (!netif_queue_stopped(dev))
                netif_stop_queue(dev);
@@ -1117,8 +1117,8 @@ static void rtl8192_init_priv_variable(struct net_device *dev)
        priv->rtllib->hwscan_sem_up = 1;
        priv->rtllib->status = 0;
        priv->H2CTxCmdSeq = 0;
-       priv->bDisableFrameBursting = 0;
-       priv->bDMInitialGainEnable = 1;
+       priv->bDisableFrameBursting = false;
+       priv->bDMInitialGainEnable = true;
        priv->polling_timer_on = 0;
        priv->up_first_time = 1;
        priv->blinked_ingpio = false;
@@ -1160,7 +1160,7 @@ static void rtl8192_init_priv_variable(struct net_device *dev)
        priv->CckPwEnl = 6;
        priv->ScanDelay = 50;
        priv->ResetProgress = RESET_TYPE_NORESET;
-       priv->bForcedSilentReset = 0;
+       priv->bForcedSilentReset = false;
        priv->bDisableNormalResetCheck = false;
        priv->force_reset = false;
        memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
@@ -1169,7 +1169,7 @@ static void rtl8192_init_priv_variable(struct net_device *dev)
        priv->RxCounter = 0;
        priv->rtllib->wx_set_enc = 0;
        priv->bHwRadioOff = false;
-       priv->RegRfOff = 0;
+       priv->RegRfOff = false;
        priv->isRFOff = false;
        priv->bInPowerSaveMode = false;
        priv->rtllib->RfOffReason = 0;
index bdab150d927eda1636fc3911538e0fa43c5f52f3..2297fc20fd4e25ccfa999641554c1ad5ccfc9b61 100644 (file)
@@ -2265,7 +2265,7 @@ void dm_CheckRfCtrlGPIO(void *data)
                return;
 
        if (priv->bfirst_after_down) {
-               priv->bfirst_after_down = 1;
+               priv->bfirst_after_down = true;
                return;
        }
 
@@ -2312,9 +2312,9 @@ void      dm_rf_pathcheck_workitemcallback(void *data)
 
        for (i = 0; i < RF90_PATH_MAX; i++) {
                if (rfpath & (0x01<<i))
-                       priv->brfpath_rxenable[i] = 1;
+                       priv->brfpath_rxenable[i] = true;
                else
-                       priv->brfpath_rxenable[i] = 0;
+                       priv->brfpath_rxenable[i] = false;
        }
        if (!DM_RxPathSelTable.Enable)
                return;
index 6862172af172fbe19e86766d7a9ac614270d4167..1a011b9b9da61840789103ef5c9dd4631806a202 100644 (file)
@@ -873,11 +873,11 @@ static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee,
                if (net_ratelimit())
                        printk(KERN_INFO "%s: find HTCControl!\n", __func__);
                hdrlen += 4;
-               rx_stats->bContainHTC = 1;
+               rx_stats->bContainHTC = true;
        }
 
         if (RTLLIB_QOS_HAS_SEQ(fc))
-               rx_stats->bIsQosData = 1;
+               rx_stats->bIsQosData = true;
 
        return hdrlen;
 }
index 671fb5ac57441826e24048b22897eb825bb7fac1..933bd6deaca123035dd271dfd0ddf67bbc290e57 100644 (file)
@@ -705,7 +705,7 @@ static void rtllib_softmac_stop_scan(struct rtllib_device *ieee)
        ieee->scan_watch_dog = 0;
        if (ieee->scanning_continue == 1) {
                ieee->scanning_continue = 0;
-               ieee->actscanning = 0;
+               ieee->actscanning = false;
 
                cancel_delayed_work(&ieee->softmac_scan_wq);
        }
@@ -1574,7 +1574,7 @@ static void rtllib_associate_complete_wq(void *data)
 
        if (ieee->is_silent_reset) {
                printk(KERN_INFO "silent reset associate\n");
-               ieee->is_silent_reset = 0;
+               ieee->is_silent_reset = false;
        }
 
        if (ieee->data_hard_resume)
@@ -3097,7 +3097,7 @@ void rtllib_softmac_init(struct rtllib_device *ieee)
        ieee->sta_edca_param[2] = 0x005E4342;
        ieee->sta_edca_param[3] = 0x002F3262;
        ieee->aggregation = true;
-       ieee->enable_rx_imm_BA = 1;
+       ieee->enable_rx_imm_BA = true;
        ieee->tx_pending.txb = NULL;
 
        _setup_timer(&ieee->associate_timer,