From: Chaehyun Lim Date: Mon, 7 Sep 2015 15:36:35 +0000 (+0900) Subject: staging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8c589c240122e37d01997e665cd22bff9f11603c;p=linux-beck.git staging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC This patch replaces WILC_MALLOC with kzalloc. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 59c9b441abf3..de82a90c2949 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -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;