diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-05 10:45:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 21:39:42 +0300 |
commit | 93e6044bd1cb635c3a07dc1b8471bc965feb9b04 (patch) | |
tree | 602ab7ad11bec7171e392afc791ddd39536ca652 /drivers/net/ethernet/qlogic/qede | |
parent | 66b63a60d7ea9f589a9cdc404057d8072930962d (diff) | |
download | linux-93e6044bd1cb635c3a07dc1b8471bc965feb9b04.tar.xz |
net: qede: Use true for bool variable in qede_init_fp()
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qede')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index 9b456198cb50..256506024b88 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -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; } |