Explorar o código

[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Mariusz Kozlowski %!s(int64=18) %!d(string=hai) anos
pai
achega
185bcd17a5
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      include/asm-mips/thread_info.h

+ 2 - 3
include/asm-mips/thread_info.h

@@ -87,9 +87,8 @@ register struct thread_info *__current_thread_info __asm__("$28");
 ({								\
 	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