Skip to content

Commit f3a3f34

Browse files
JasonYanHwdavem330
authored andcommitted
bnx2x: use true,false for bool variables
This addresses the following coccinelle warning: drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:15415:1-26: WARNING: Assignment of 0/1 to bool variable drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:12393:2-17: WARNING: Assignment of 0/1 to bool variable drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:15497:2-27: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 889bafe commit f3a3f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12390,7 +12390,7 @@ static int bnx2x_init_bp(struct bnx2x *bp)
1239012390
}
1239112391

1239212392
if (CHIP_IS_E1(bp))
12393-
bp->dropless_fc = 0;
12393+
bp->dropless_fc = false;
1239412394
else
1239512395
bp->dropless_fc = dropless_fc | bnx2x_get_dropless_info(bp);
1239612396

@@ -15412,7 +15412,7 @@ static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr)
1541215412
return -EINVAL;
1541315413
}
1541415414

15415-
bp->hwtstamp_ioctl_called = 1;
15415+
bp->hwtstamp_ioctl_called = true;
1541615416
bp->tx_type = config.tx_type;
1541715417
bp->rx_filter = config.rx_filter;
1541815418

@@ -15494,7 +15494,7 @@ void bnx2x_init_ptp(struct bnx2x *bp)
1549415494
bnx2x_init_cyclecounter(bp);
1549515495
timecounter_init(&bp->timecounter, &bp->cyclecounter,
1549615496
ktime_to_ns(ktime_get_real()));
15497-
bp->timecounter_init_done = 1;
15497+
bp->timecounter_init_done = true;
1549815498
}
1549915499

1550015500
DP(BNX2X_MSG_PTP, "PTP initialization ended successfully\n");

0 commit comments

Comments
 (0)