Convert as many things as possible to use kzalloc
[madwifi/.git] / ath_hal / ah_os.c
index c4ca4fc32fcd6b27364e5a1d8698eb71a96b8e25..4ace49f3b0ab8106941286f44f3031ffa2859a38 100644 (file)
@@ -995,12 +995,7 @@ EXPORT_SYMBOL(ath_hal_getuptime);
 void * __ahdecl
 ath_hal_malloc(size_t size)
 {
-       void *p;
-       p = kmalloc(size, GFP_KERNEL);
-       if (p)
-               OS_MEMZERO(p, size);
-       return p;
-
+       return kzalloc(size, GFP_KERNEL);
 }
 
 void __ahdecl