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>
This commit is contained in:

committed by
David S. Miller

parent
a8e510f682
commit
3db1cd5c05
@@ -3375,7 +3375,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,
|
||||
|
||||
if (dev->phy.rev >= 4) {
|
||||
avoid = nphy->hang_avoid;
|
||||
nphy->hang_avoid = 0;
|
||||
nphy->hang_avoid = false;
|
||||
}
|
||||
|
||||
b43_ntab_read_bulk(dev, B43_NTAB16(7, 0x110), 2, save);
|
||||
@@ -3485,7 +3485,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,
|
||||
|
||||
if (phy6or5x && updated[core] == 0) {
|
||||
b43_nphy_update_tx_cal_ladder(dev, core);
|
||||
updated[core] = 1;
|
||||
updated[core] = true;
|
||||
}
|
||||
|
||||
tmp = (params[core].ncorr[type] << 8) | 0x66;
|
||||
|
Reference in New Issue
Block a user