Commit b8f7544a authored by Wan Jiabing's avatar Wan Jiabing Committed by David S. Miller
Browse files

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: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f22881de
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;