mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: Fix maybe-uninitialized build error
This change fixes build errors with compiler option
-Werror=maybe-uninitialized.
Change-Id: Ieff271ed61575c9e60ce73f5145fff2c2d6dfa24
CRs-Fixed: 2346019
This commit is contained in:
parent
8bd4f992f9
commit
b4ea80e030
2 changed files with 2 additions and 1 deletions
|
|
@ -305,7 +305,6 @@ int dfs_set_thresholds(struct wlan_dfs *dfs, const uint32_t threshtype,
|
|||
int dfs_get_thresholds(struct wlan_dfs *dfs,
|
||||
struct wlan_dfs_phyerr_param *param)
|
||||
{
|
||||
qdf_mem_zero(param, sizeof(*param));
|
||||
lmac_dfs_get_thresholds(dfs->dfs_pdev_obj, param);
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -411,6 +411,8 @@ int dfs_control(struct wlan_dfs *dfs,
|
|||
*outsize = sizeof(struct dfs_ioctl_params);
|
||||
dfsparams = (struct dfs_ioctl_params *) outdata;
|
||||
|
||||
qdf_mem_zero(&peout, sizeof(struct wlan_dfs_phyerr_param));
|
||||
|
||||
/* Fetch the DFS thresholds using the internal representation */
|
||||
(void) dfs_get_thresholds(dfs, &peout);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue