]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 7 Sep 2015 15:36:35 +0000 (00:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:45 +0000 (18:24 -0700)
This patch replaces WILC_MALLOC with kzalloc.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index 59c9b441abf38cf6e65ca5cd34938e3d547c3711..de82a90c294985a096153a4cc5c7d2c766f3e6da 100644 (file)
@@ -2250,8 +2250,7 @@ int wilc_netdev_init(void)
        sema_init(&close_exit_sync, 0);
 
        /*create the common structure*/
-       g_linux_wlan = WILC_MALLOC(sizeof(linux_wlan_t));
-       memset(g_linux_wlan, 0, sizeof(linux_wlan_t));
+       g_linux_wlan = kzalloc(sizeof(linux_wlan_t), GFP_KERNEL);
 
        /*Reset interrupt count debug*/
        int_rcvdU = 0;