git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7050da
)
net/hns3: fix code check warning
author
Min Hu (Connor)
<humin29@huawei.com>
Wed, 1 Jun 2022 03:52:46 +0000
(11:52 +0800)
committer
Andrew Rybchenko
<andrew.rybchenko@oktetlabs.ru>
Thu, 9 Jun 2022 08:57:44 +0000
(10:57 +0200)
In bitwise operation, "val" should be an unsigned type.
Fixes:
38b539d96eb6
("net/hns3: support IEEE 1588 PTP")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_ptp.c
b/drivers/net/hns3/hns3_ptp.c
index
1442241
..
0b0061b
100644
(file)
--- a/
drivers/net/hns3/hns3_ptp.c
+++ b/
drivers/net/hns3/hns3_ptp.c
@@
-81,7
+81,7
@@
hns3_timesync_configure(struct hns3_adapter *hns, bool en)
struct hns3_hw *hw = &hns->hw;
struct hns3_pf *pf = &hns->pf;
struct hns3_cmd_desc desc;
-
in
t val;
+
uint32_
t val;
int ret;
hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_CFG_PTP_MODE, false);