aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas_tf
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-19 08:56:45 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-19 22:27:29 -0500
commit3db1cd5c05f35fb43eb134df6f321de4e63141f2 (patch)
tree960039f3f4f0a524b37e94434624da154859bc64 /drivers/net/wireless/libertas_tf
parenta8e510f682fe6d7671c11887e07c55f86caaf3c1 (diff)
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>
Diffstat (limited to 'drivers/net/wireless/libertas_tf')
-rw-r--r--drivers/net/wireless/libertas_tf/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c
index ceb51b6e670..a03457292c8 100644
--- a/drivers/net/wireless/libertas_tf/main.c
+++ b/drivers/net/wireless/libertas_tf/main.c
@@ -719,11 +719,11 @@ void lbtf_bcn_sent(struct lbtf_private *priv)
719 return; 719 return;
720 720
721 if (skb_queue_empty(&priv->bc_ps_buf)) { 721 if (skb_queue_empty(&priv->bc_ps_buf)) {
722 bool tx_buff_bc = 0; 722 bool tx_buff_bc = false;
723 723
724 while ((skb = ieee80211_get_buffered_bc(priv->hw, priv->vif))) { 724 while ((skb = ieee80211_get_buffered_bc(priv->hw, priv->vif))) {
725 skb_queue_tail(&priv->bc_ps_buf, skb); 725 skb_queue_tail(&priv->bc_ps_buf, skb);
726 tx_buff_bc = 1; 726 tx_buff_bc = true;
727 } 727 }
728 if (tx_buff_bc) { 728 if (tx_buff_bc) {
729 ieee80211_stop_queues(priv->hw); 729 ieee80211_stop_queues(priv->hw);