Skip to content

Commit

Permalink
net: qede: Use true for bool variable in qede_init_fp()
Browse files Browse the repository at this point in the history
Fix the following coccicheck warning:

drivers/net/ethernet/qlogic/qede/qede_main.c:1717:5-19: WARNING:
Assignment of 0/1 to bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jason Yan authored and David S. Miller committed May 5, 2020
1 parent 66b63a6 commit 93e6044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qlogic/qede/qede_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ static void qede_init_fp(struct qede_dev *edev)
txq->ndev_txq_id = ndev_tx_id;

if (edev->dev_info.is_legacy)
txq->is_legacy = 1;
txq->is_legacy = true;
txq->dev = &edev->pdev->dev;
}

Expand Down

0 comments on commit 93e6044

Please sign in to comment.