]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: Replace kmalloc/memset with kzalloc
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 15 Dec 2011 02:23:03 +0000 (20:23 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:37 +0000 (14:46 -0500)
commit9f03c2dbc64bb9df77cd8701051eb7c93339860c
tree566a8007f815aa611a8d06770b1c828cb34cd291
parent12e577c5f71a17ae68216ed43d0fd0bb7cc751a7
brcmsmac: Replace kmalloc/memset with kzalloc

In ai_attach(), space is allocated for an si_info struct. Immediately
after the allocation, routine ai_doattach() is called and that allocated
space is set to zero. As no other routine calls ai_doattach(), kzalloc()
can be utilized.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c