mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
staging: fsl-dpaa2/ethsw: Remove useless set memory to zero use memset()
The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20190802013149.80952-1-weiyongjun1@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0b800f3dba
commit
a5589269e6
1 changed files with 0 additions and 2 deletions
|
@ -641,8 +641,6 @@ static int port_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb,
|
|||
if (!dma_mem)
|
||||
return -ENOMEM;
|
||||
|
||||
memset(dma_mem, 0, fdb_dump_size);
|
||||
|
||||
fdb_dump_iova = dma_map_single(dev, dma_mem, fdb_dump_size,
|
||||
DMA_FROM_DEVICE);
|
||||
if (dma_mapping_error(dev, fdb_dump_iova)) {
|
||||
|
|
Loading…
Reference in a new issue