aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/tg3.c
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/ethernet/broadcom/tg3.c
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/ethernet/broadcom/tg3.c')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 00213968d21..076e02a415a 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -6425,13 +6425,13 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
6425 bool hwbug = false; 6425 bool hwbug = false;
6426 6426
6427 if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8) 6427 if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8)
6428 hwbug = 1; 6428 hwbug = true;
6429 6429
6430 if (tg3_4g_overflow_test(map, len)) 6430 if (tg3_4g_overflow_test(map, len))
6431 hwbug = 1; 6431 hwbug = true;
6432 6432
6433 if (tg3_40bit_overflow_test(tp, map, len)) 6433 if (tg3_40bit_overflow_test(tp, map, len))
6434 hwbug = 1; 6434 hwbug = true;
6435 6435
6436 if (tp->dma_limit) { 6436 if (tp->dma_limit) {
6437 u32 prvidx = *entry; 6437 u32 prvidx = *entry;
@@ -6464,7 +6464,7 @@ static bool tg3_tx_frag_set(struct tg3_napi *tnapi, u32 *entry, u32 *budget,
6464 *budget -= 1; 6464 *budget -= 1;
6465 *entry = NEXT_TX(*entry); 6465 *entry = NEXT_TX(*entry);
6466 } else { 6466 } else {
6467 hwbug = 1; 6467 hwbug = true;
6468 tnapi->tx_buffers[prvidx].fragmented = false; 6468 tnapi->tx_buffers[prvidx].fragmented = false;
6469 } 6469 }
6470 } 6470 }