mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
octeon_ep: remove redundant memset in octep_setup_pfvf_mbox()
vzalloc() returns zeroed memory, so the memset after the allocation is redundant. No functional change. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Reviewed-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn> Link: https://patch.msgid.link/20260901110913.977745-1-ekffu200098@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
60c1bcdeeb
commit
b35d3d2fae
|
|
@ -274,7 +274,6 @@ int octep_setup_pfvf_mbox(struct octep_device *oct)
|
|||
if (!oct->mbox[ring])
|
||||
goto free_mbox;
|
||||
|
||||
memset(oct->mbox[ring], 0, sizeof(struct octep_mbox));
|
||||
memset(&oct->vf_info[i], 0, sizeof(struct octep_pfvf_info));
|
||||
mutex_init(&oct->mbox[ring]->lock);
|
||||
INIT_WORK(&oct->mbox[ring]->wk.work, octep_pfvf_mbox_work);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user