diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2022-03-18 17:31:53 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-21 10:59:56 +0000 |
commit | b8f7544a6cb384c079e3d626b3ee185086a7c0ef (patch) | |
tree | 78739bdbe8852ab95d7d76a8053344adbe7f5d4d /drivers/net | |
parent | f22881de730ebd472e15bcc2c0d1d46e36a87b9c (diff) | |
download | linux-b8f7544a6cb384c079e3d626b3ee185086a7c0ef.tar.bz2 |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c b/drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c index 0ce37f2460a4..407029a36fa1 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c +++ b/drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c @@ -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; |