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:
jiad 2018-11-02 15:52:22 +08:00 • committed by nshrivas
commit b4ea80e030
2 changed files with 2 additions and 1 deletions

View file

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

View file

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