qed: remove unnecessary memset in qed_init_fw_funcs
allocated_mem is allocated by kcalloc(). The memory is set to zero. It is unnecessary to call memset again. Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f22881de73
commit
b8f7544a6c
@ -1835,8 +1835,6 @@ struct phys_mem_desc *qed_fw_overlay_mem_alloc(struct qed_hwfn *p_hwfn,
|
||||
if (!allocated_mem)
|
||||
return NULL;
|
||||
|
||||
memset(allocated_mem, 0, NUM_STORMS * sizeof(struct phys_mem_desc));
|
||||
|
||||
/* For each Storm, set physical address in RAM */
|
||||
while (buf_offset < buf_size) {
|
||||
struct phys_mem_desc *storm_mem_desc;
|
||||
|
Loading…
Reference in New Issue
Block a user