projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee3a67
)
staging: brcm80211: Remove unnecessary memset(,0,)
author
Joe Perches
<joe@perches.com>
Wed, 12 Jan 2011 21:21:19 +0000
(13:21 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 20 Jan 2011 23:34:35 +0000
(15:34 -0800)
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>
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
index 55b9ceee4200acb7a07a2bfd52dcd2b2b03555fe..6a552bd5c90bccb1d3a5c9a663722b52b85e6281 100644
(file)
--- 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);