qcacmn: Use qdf_mem_zero for zero initialization, target_if part
Use qdf_mem_zero for zero initialization, target_if part. Change-Id: Id5abc97548cd7728a52b3a55547c0cad6bd56dac CRs-Fixed: 2378005
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -40,7 +40,7 @@ target_if_peer_set_default_routing(struct cdp_ctrl_objmgr_pdev *pdev,
|
||||
return;
|
||||
}
|
||||
|
||||
qdf_mem_set(¶m, sizeof(param), 0);
|
||||
qdf_mem_zero(¶m, sizeof(param));
|
||||
|
||||
/* TODO: Need bit definitions for ring number and hash based routing
|
||||
* fields in common wmi header file
|
||||
|
@@ -110,7 +110,7 @@ target_if_send_vdev_spectral_configure_cmd(struct target_if_spectral *spectral,
|
||||
if (!vdev)
|
||||
return QDF_STATUS_E_NOENT;
|
||||
|
||||
qdf_mem_set(&sparam, sizeof(sparam), 0);
|
||||
qdf_mem_zero(&sparam, sizeof(sparam));
|
||||
|
||||
sparam.vdev_id = wlan_vdev_get_id(vdev);
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_SPECTRAL_ID);
|
||||
@@ -171,7 +171,7 @@ target_if_send_vdev_spectral_enable_cmd(struct target_if_spectral *spectral,
|
||||
if (!vdev)
|
||||
return QDF_STATUS_E_NOENT;
|
||||
|
||||
qdf_mem_set(¶m, sizeof(param), 0);
|
||||
qdf_mem_zero(¶m, sizeof(param));
|
||||
|
||||
param.vdev_id = wlan_vdev_get_id(vdev);
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_SPECTRAL_ID);
|
||||
|
Reference in New Issue
Block a user