mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 08:48:10 -04:00
staging: r8188eu: don't set pcmd_obj components to 0
pcmd_obj was allocated with kzalloc, its memory is filled with 0s. There's no need to set rsp and rspsz to NULL or 0 again. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/20221023170808.46233-3-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ec6d910164
commit
2ce164e9b3
@@ -6725,9 +6725,6 @@ void report_join_res(struct adapter *padapter, int res)
|
||||
pcmd_obj->cmdsz = cmdsz;
|
||||
pcmd_obj->parmbuf = pevtcmd;
|
||||
|
||||
pcmd_obj->rsp = NULL;
|
||||
pcmd_obj->rspsz = 0;
|
||||
|
||||
pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
|
||||
pc2h_evt_hdr->len = sizeof(struct joinbss_event);
|
||||
pc2h_evt_hdr->ID = GEN_EVT_CODE(_JoinBss);
|
||||
|
||||
Reference in New Issue
Block a user