staging: brcm80211: brcmfmac: Fix memset using sizeof(ptr) not sizeof(*ptr)
authorJoe Perches <joe@perches.com>
Mon, 9 May 2011 15:51:29 +0000 (08:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 18:14:08 +0000 (11:14 -0700)
commitb18aaa1c7cd53ff654d3872ad58ab95343bbe476
tree8b79b27a69b315e31f2cc0541b1bf1ac46cb5c76
parentc4295d774ff26776fa729326921c92a4382fa689
staging: brcm80211: brcmfmac: Fix memset using sizeof(ptr) not sizeof(*ptr)

Found via coccinelle script

@@
type T;
T* ptr;
expression E1;
@@

* memset(E1, 0, sizeof(ptr));

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/wl_iw.c