projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b63a6
)
net: qede: Use true for bool variable in qede_init_fp()
author
Jason Yan
<yanaijie@huawei.com>
Tue, 5 May 2020 07:45:39 +0000
(15:45 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qede/qede_main.c
b/drivers/net/ethernet/qlogic/qede/qede_main.c
index 9b456198cb50fbb36e3e0975b286a04f00380edb..256506024b8830e2255a09dddfe80f472366d9bb 100644
(file)
--- 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;
}