]> 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)
commit2fccc931898f26eb2f73cafc8574a4a809ab51c2
treeb8033bbbf9b860246edbdfeb4350df92c44e159b
parent67bcbe2f77530f94ec3688405b5eedbd78545cfd
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