net: hns3: remove redundant memset when alloc buffer
authorLipeng <lipeng321@huawei.com>
Mon, 23 Oct 2017 11:51:06 +0000 (19:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 00:16:42 +0000 (01:16 +0100)
commit51145dae2748233315a7a411cd97f4bedf8cc22f
tree7685626117e531b8a4f523e1f68a96f00dc5d071
parent66b447301ac710ee237dba8b653244018fbb6168
net: hns3: remove redundant memset when alloc buffer

HW will use packet length to write packets to buffer or read
packets from buffer. There is a redundant memset when alloc buffer,
the memset have no sense and will increase time-consuming.
This patch removes it.

Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)

Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c