diff options
author | Valentina Manea <valentina.manea.m@gmail.com> | 2013-10-29 14:58:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-30 12:08:45 -0400 |
commit | 014e4c27c68a3ec40b19fef6ae0431e639632531 (patch) | |
tree | 6852e1829463782ba19dcd57fefba0e97d189b62 | |
parent | b1bdd4d3ed3b501063d81618be547be0cfe61b0f (diff) |
staging: rtl8192e: use true and false for bool variables
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>
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 10 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_rx.c | 4 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_softmac.c | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index a816a57030fe..a28584128c91 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | |||
@@ -2213,7 +2213,7 @@ rtl8192_InitializeVariables(struct net_device *dev) | |||
2213 | priv->MidHighPwrTHR_L2 = 0x40; | 2213 | priv->MidHighPwrTHR_L2 = 0x40; |
2214 | priv->PwrDomainProtect = false; | 2214 | priv->PwrDomainProtect = false; |
2215 | 2215 | ||
2216 | priv->bfirst_after_down = 0; | 2216 | priv->bfirst_after_down = false; |
2217 | } | 2217 | } |
2218 | 2218 | ||
2219 | void rtl8192_EnableInterrupt(struct net_device *dev) | 2219 | void rtl8192_EnableInterrupt(struct net_device *dev) |
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index bd8c9a2970fc..d93caca9657d 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c | |||
@@ -998,7 +998,7 @@ static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) | |||
998 | priv->bDriverIsGoingToUnload = true; | 998 | priv->bDriverIsGoingToUnload = true; |
999 | priv->up = 0; | 999 | priv->up = 0; |
1000 | priv->rtllib->ieee_up = 0; | 1000 | priv->rtllib->ieee_up = 0; |
1001 | priv->bfirst_after_down = 1; | 1001 | priv->bfirst_after_down = true; |
1002 | RT_TRACE(COMP_DOWN, "==========>%s()\n", __func__); | 1002 | RT_TRACE(COMP_DOWN, "==========>%s()\n", __func__); |
1003 | if (!netif_queue_stopped(dev)) | 1003 | if (!netif_queue_stopped(dev)) |
1004 | netif_stop_queue(dev); | 1004 | netif_stop_queue(dev); |
@@ -1117,8 +1117,8 @@ static void rtl8192_init_priv_variable(struct net_device *dev) | |||
1117 | priv->rtllib->hwscan_sem_up = 1; | 1117 | priv->rtllib->hwscan_sem_up = 1; |
1118 | priv->rtllib->status = 0; | 1118 | priv->rtllib->status = 0; |
1119 | priv->H2CTxCmdSeq = 0; | 1119 | priv->H2CTxCmdSeq = 0; |
1120 | priv->bDisableFrameBursting = 0; | 1120 | priv->bDisableFrameBursting = false; |
1121 | priv->bDMInitialGainEnable = 1; | 1121 | priv->bDMInitialGainEnable = true; |
1122 | priv->polling_timer_on = 0; | 1122 | priv->polling_timer_on = 0; |
1123 | priv->up_first_time = 1; | 1123 | priv->up_first_time = 1; |
1124 | priv->blinked_ingpio = false; | 1124 | priv->blinked_ingpio = false; |
@@ -1160,7 +1160,7 @@ static void rtl8192_init_priv_variable(struct net_device *dev) | |||
1160 | priv->CckPwEnl = 6; | 1160 | priv->CckPwEnl = 6; |
1161 | priv->ScanDelay = 50; | 1161 | priv->ScanDelay = 50; |
1162 | priv->ResetProgress = RESET_TYPE_NORESET; | 1162 | priv->ResetProgress = RESET_TYPE_NORESET; |
1163 | priv->bForcedSilentReset = 0; | 1163 | priv->bForcedSilentReset = false; |
1164 | priv->bDisableNormalResetCheck = false; | 1164 | priv->bDisableNormalResetCheck = false; |
1165 | priv->force_reset = false; | 1165 | priv->force_reset = false; |
1166 | memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32); | 1166 | 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) | |||
1169 | priv->RxCounter = 0; | 1169 | priv->RxCounter = 0; |
1170 | priv->rtllib->wx_set_enc = 0; | 1170 | priv->rtllib->wx_set_enc = 0; |
1171 | priv->bHwRadioOff = false; | 1171 | priv->bHwRadioOff = false; |
1172 | priv->RegRfOff = 0; | 1172 | priv->RegRfOff = false; |
1173 | priv->isRFOff = false; | 1173 | priv->isRFOff = false; |
1174 | priv->bInPowerSaveMode = false; | 1174 | priv->bInPowerSaveMode = false; |
1175 | priv->rtllib->RfOffReason = 0; | 1175 | priv->rtllib->RfOffReason = 0; |
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index bdab150d927e..2297fc20fd4e 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | |||
@@ -2265,7 +2265,7 @@ void dm_CheckRfCtrlGPIO(void *data) | |||
2265 | return; | 2265 | return; |
2266 | 2266 | ||
2267 | if (priv->bfirst_after_down) { | 2267 | if (priv->bfirst_after_down) { |
2268 | priv->bfirst_after_down = 1; | 2268 | priv->bfirst_after_down = true; |
2269 | return; | 2269 | return; |
2270 | } | 2270 | } |
2271 | 2271 | ||
@@ -2312,9 +2312,9 @@ void dm_rf_pathcheck_workitemcallback(void *data) | |||
2312 | 2312 | ||
2313 | for (i = 0; i < RF90_PATH_MAX; i++) { | 2313 | for (i = 0; i < RF90_PATH_MAX; i++) { |
2314 | if (rfpath & (0x01<<i)) | 2314 | if (rfpath & (0x01<<i)) |
2315 | priv->brfpath_rxenable[i] = 1; | 2315 | priv->brfpath_rxenable[i] = true; |
2316 | else | 2316 | else |
2317 | priv->brfpath_rxenable[i] = 0; | 2317 | priv->brfpath_rxenable[i] = false; |
2318 | } | 2318 | } |
2319 | if (!DM_RxPathSelTable.Enable) | 2319 | if (!DM_RxPathSelTable.Enable) |
2320 | return; | 2320 | return; |
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 6862172af172..1a011b9b9da6 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c | |||
@@ -873,11 +873,11 @@ static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee, | |||
873 | if (net_ratelimit()) | 873 | if (net_ratelimit()) |
874 | printk(KERN_INFO "%s: find HTCControl!\n", __func__); | 874 | printk(KERN_INFO "%s: find HTCControl!\n", __func__); |
875 | hdrlen += 4; | 875 | hdrlen += 4; |
876 | rx_stats->bContainHTC = 1; | 876 | rx_stats->bContainHTC = true; |
877 | } | 877 | } |
878 | 878 | ||
879 | if (RTLLIB_QOS_HAS_SEQ(fc)) | 879 | if (RTLLIB_QOS_HAS_SEQ(fc)) |
880 | rx_stats->bIsQosData = 1; | 880 | rx_stats->bIsQosData = true; |
881 | 881 | ||
882 | return hdrlen; | 882 | return hdrlen; |
883 | } | 883 | } |
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 671fb5ac5744..933bd6deaca1 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c | |||
@@ -705,7 +705,7 @@ static void rtllib_softmac_stop_scan(struct rtllib_device *ieee) | |||
705 | ieee->scan_watch_dog = 0; | 705 | ieee->scan_watch_dog = 0; |
706 | if (ieee->scanning_continue == 1) { | 706 | if (ieee->scanning_continue == 1) { |
707 | ieee->scanning_continue = 0; | 707 | ieee->scanning_continue = 0; |
708 | ieee->actscanning = 0; | 708 | ieee->actscanning = false; |
709 | 709 | ||
710 | cancel_delayed_work(&ieee->softmac_scan_wq); | 710 | cancel_delayed_work(&ieee->softmac_scan_wq); |
711 | } | 711 | } |
@@ -1574,7 +1574,7 @@ static void rtllib_associate_complete_wq(void *data) | |||
1574 | 1574 | ||
1575 | if (ieee->is_silent_reset) { | 1575 | if (ieee->is_silent_reset) { |
1576 | printk(KERN_INFO "silent reset associate\n"); | 1576 | printk(KERN_INFO "silent reset associate\n"); |
1577 | ieee->is_silent_reset = 0; | 1577 | ieee->is_silent_reset = false; |
1578 | } | 1578 | } |
1579 | 1579 | ||
1580 | if (ieee->data_hard_resume) | 1580 | if (ieee->data_hard_resume) |
@@ -3097,7 +3097,7 @@ void rtllib_softmac_init(struct rtllib_device *ieee) | |||
3097 | ieee->sta_edca_param[2] = 0x005E4342; | 3097 | ieee->sta_edca_param[2] = 0x005E4342; |
3098 | ieee->sta_edca_param[3] = 0x002F3262; | 3098 | ieee->sta_edca_param[3] = 0x002F3262; |
3099 | ieee->aggregation = true; | 3099 | ieee->aggregation = true; |
3100 | ieee->enable_rx_imm_BA = 1; | 3100 | ieee->enable_rx_imm_BA = true; |
3101 | ieee->tx_pending.txb = NULL; | 3101 | ieee->tx_pending.txb = NULL; |
3102 | 3102 | ||
3103 | _setup_timer(&ieee->associate_timer, | 3103 | _setup_timer(&ieee->associate_timer, |