]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: simplify hclgevf_cmd_csq_clean
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 4 Apr 2019 08:17:54 +0000 (16:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:20:39 +0000 (10:20 -0700)
commitd07e3695908ca6d39c271f07d0d30e1679053fd0
treeb8033bbbf9b860246edbdfeb4350df92c44e159b
parent9d4329d7f33933586cb6fff43e90f03d9d9ec0ad
net: hns3: simplify hclgevf_cmd_csq_clean

csq is used as a ring buffer, the value of the desc will be replaced
in next use. This patch removes the unnecessary memset, and just
updates the next_to_clean.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c