diff options
| author | lipeng <[email protected]> | 2017-04-01 11:03:34 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-04-03 21:48:43 +0000 |
| commit | fb0672d11634dd072bfb66a0b546b4fc592f4158 (patch) | |
| tree | 2317597c05672e8397d54b237317e1a4c6791e06 /lib/memory-notifier-error-inject.c | |
| parent | net: hns: Optimize the code for GMAC pad and crc Config (diff) | |
| download | kernel-fb0672d11634dd072bfb66a0b546b4fc592f4158.tar.gz kernel-fb0672d11634dd072bfb66a0b546b4fc592f4158.zip | |
net: hns: Remove redundant memset during buffer release
Because all members of desc_cb is assigned when xmit one package, so it
can delete in hnae_free_buffer, as follows:
- "dma, priv, length, type" are assigned in fill_v2_desc.
- "page_offset, reuse_flag, buf" are not used in tx direction.
Signed-off-by: lipeng <[email protected]>
Signed-off-by: Weiwei Deng <[email protected]>
Reviewed-by: Yisen Zhuang <[email protected]>
Signed-off-by: Salil Mehta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
