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:
Sang-Heon Jeon 2026-09-01 20:09:11 +09:00 committed by Paolo Abeni
parent 60c1bcdeeb
commit b35d3d2fae

View File

@ -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);