mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 06:32:50 +00:00
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>
This commit is contained in:
parent
eee3a67883
commit
0bbfc0edb7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user