mirror of https://gitee.com/openkylin/linux.git
broadcom: bnxt: Fix use true/false for bool
Use true/false for bool type in bnxt_timer function. Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Acked-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cb5ff33fbf
commit
acda6180e8
|
@ -10004,7 +10004,7 @@ static void bnxt_timer(struct timer_list *t)
|
||||||
|
|
||||||
if (bp->link_info.phy_retry) {
|
if (bp->link_info.phy_retry) {
|
||||||
if (time_after(jiffies, bp->link_info.phy_retry_expires)) {
|
if (time_after(jiffies, bp->link_info.phy_retry_expires)) {
|
||||||
bp->link_info.phy_retry = 0;
|
bp->link_info.phy_retry = false;
|
||||||
netdev_warn(bp->dev, "failed to update phy settings after maximum retries.\n");
|
netdev_warn(bp->dev, "failed to update phy settings after maximum retries.\n");
|
||||||
} else {
|
} else {
|
||||||
set_bit(BNXT_UPDATE_PHY_SP_EVENT, &bp->sp_event);
|
set_bit(BNXT_UPDATE_PHY_SP_EVENT, &bp->sp_event);
|
||||||
|
|
Loading…
Reference in New Issue