net: qede: Use true for bool variable in qede_init_fp()
authorJason Yan <yanaijie@huawei.com>
Tue, 5 May 2020 07:45:39 +0000 (15:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2020 18:39:42 +0000 (11:39 -0700)
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>
drivers/net/ethernet/qlogic/qede/qede_main.c

index 9b456198cb50fbb36e3e0975b286a04f00380edb..256506024b8830e2255a09dddfe80f472366d9bb 100644 (file)
@@ -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;
                        }