]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-frv/thread_info.h
include/asm-frv/thread_info.h: kmalloc + memset conversion to kzalloc
[karo-tx-linux.git] / include / asm-frv / thread_info.h
index cc5433e78b5216dfb5560f6ae57b7b4417cf7b95..348b8f1df17eef8593183fe565925d4c1b15467f 100644 (file)
@@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15");
        ({                                                      \
                struct thread_info *ret;                        \
                                                                \
-               ret = kmalloc(THREAD_SIZE, GFP_KERNEL);         \
-               if (ret)                                        \
-                       memset(ret, 0, THREAD_SIZE);            \
+               ret = kzalloc(THREAD_SIZE, GFP_KERNEL);         \
+                                                               \
                ret;                                            \
        })
 #else