qcacld-3.0: Remove unused allocation of mlo ie struct
Remove unused allocation of mlo ie struct in sir_convert_mlo_probe_rsp_frame2_struct. Change-Id: I42e71f7d09304eb91629bed036f40980bf34792a CRs-Fixed: 3045161
This commit is contained in:

committed by
Madan Koyyalamudi

parent
87e6498309
commit
6c1bb1c763
@@ -7739,7 +7739,6 @@ QDF_STATUS
|
|||||||
sir_convert_mlo_probe_rsp_frame2_struct(tDot11fProbeResponse *pr,
|
sir_convert_mlo_probe_rsp_frame2_struct(tDot11fProbeResponse *pr,
|
||||||
tpSirMultiLink_IE mlo_ie_ptr)
|
tpSirMultiLink_IE mlo_ie_ptr)
|
||||||
{
|
{
|
||||||
tDot11fIEmlo_ie *mlo_ie;
|
|
||||||
tDot11fIEsta_profile *sta_prof, *pStaProf;
|
tDot11fIEsta_profile *sta_prof, *pStaProf;
|
||||||
|
|
||||||
if (!pr)
|
if (!pr)
|
||||||
@@ -7750,10 +7749,6 @@ sir_convert_mlo_probe_rsp_frame2_struct(tDot11fProbeResponse *pr,
|
|||||||
return QDF_STATUS_E_NULL_VALUE;
|
return QDF_STATUS_E_NULL_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlo_ie = qdf_mem_malloc(sizeof(*mlo_ie));
|
|
||||||
if (!mlo_ie)
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
|
||||||
|
|
||||||
qdf_mem_zero((uint8_t *)mlo_ie_ptr, sizeof(tSirMultiLink_IE));
|
qdf_mem_zero((uint8_t *)mlo_ie_ptr, sizeof(tSirMultiLink_IE));
|
||||||
|
|
||||||
mlo_ie_ptr->mlo_ie.present = pr->mlo_ie.present;
|
mlo_ie_ptr->mlo_ie.present = pr->mlo_ie.present;
|
||||||
|
Reference in New Issue
Block a user