mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
i40e: Remove redundant memset
Remove redundant call to memset before a call to memcpy. The Coccinelle semantic patch used to make this change is as follows: @@ expression e1,e2,e3,e4; @@ - memset(e1,e2,e3); memcpy(e1,e4,e3); Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
ae33256c55
commit
4dec7d045d
@ -7916,7 +7916,6 @@ static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed,
|
||||
u8 *rss_lut;
|
||||
int ret, i;
|
||||
|
||||
memset(&rss_key, 0, sizeof(rss_key));
|
||||
memcpy(&rss_key, seed, sizeof(rss_key));
|
||||
|
||||
rss_lut = kzalloc(pf->rss_table_size, GFP_KERNEL);
|
||||
|
Loading…
Reference in New Issue
Block a user