staging: brcm80211: Remove unnecessary memset(,0,)
authorJoe Perches <joe@perches.com>
Wed, 12 Jan 2011 21:21:19 +0000 (13:21 -0800)
committerGreg 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

index 55b9ceee4200acb7a07a2bfd52dcd2b2b03555fe..6a552bd5c90bccb1d3a5c9a663722b52b85e6281 100644 (file)
@@ -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(&params->params, ssid);