diff options
author | Joe Perches <joe@perches.com> | 2011-01-12 21:21:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-20 23:34:35 (GMT) |
commit | 0bbfc0edb7a2606829dfcb5c6926f20adfc68d91 (patch) | |
tree | 40ef1675a0e4959b83901bf27a208f91edaec6c3 /drivers/staging | |
parent | eee3a678835fbf8f8a5a243c7bf69d9f990a70fd (diff) | |
download | linux-fsl-qoriq-0bbfc0edb7a2606829dfcb5c6926f20adfc68d91.tar.xz |
staging: brcm80211: Remove unnecessary memset(,0,)
kzalloc'd memory doesn't need a memset to 0.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c index 55b9cee..6a552bd 100644 --- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c @@ -703,7 +703,6 @@ wl_run_iscan(struct wl_iscan_ctrl *iscan, struct wlc_ssid *ssid, u16 action) params = kzalloc(params_size, GFP_KERNEL); if (unlikely(!params)) return -ENOMEM; - memset(params, 0, params_size); BUG_ON(unlikely(params_size >= WLC_IOCTL_SMLEN)); wl_iscan_prep(¶ms->params, ssid); |