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:
6b978ea
)
net/hns3: remove unnecessary memset
author
Lijun Ou
<oulijun@huawei.com>
Wed, 6 Jan 2021 03:46:32 +0000
(11:46 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:13 +0000
(
03:30
+0100)
The hns3_cmd_desc has memset when setup and the memset
for req is unnecessary.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_rss.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_rss.c
b/drivers/net/hns3/hns3_rss.c
index
e2f0468
..
b5df374
100644
(file)
--- a/
drivers/net/hns3/hns3_rss.c
+++ b/
drivers/net/hns3/hns3_rss.c
@@
-633,16
+633,11
@@
hns3_set_rss_tc_mode(struct hns3_hw *hw)
static void
hns3_rss_tuple_uninit(struct hns3_hw *hw)
{
- struct hns3_rss_input_tuple_cmd *req;
struct hns3_cmd_desc desc;
int ret;
hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_RSS_INPUT_TUPLE, false);
- req = (struct hns3_rss_input_tuple_cmd *)desc.data;
-
- memset(req, 0, sizeof(struct hns3_rss_tuple_cfg));
-
ret = hns3_cmd_send(hw, &desc, 1);
if (ret) {
hns3_err(hw, "RSS uninit tuple failed %d", ret);