From: tom_hisch@gmx.at Date: Thu, 03 Aug 2006 20:47:08 +0000 Subject: [KJ] [PATCH] Use kzalloc Message-Id: <11546380282929-git-send-email-tom_hisch@gmx.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org From: Thomas Hisch use kzalloc in include/asm-i386/thread_info.h instead of kmalloc + memset Signed-off-by: Thomas Hisch --- include/asm-i386/thread_info.h | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/include/asm-i386/thread_info.h b/include/asm-i386/thread_info.h index 54d6d7a..a8f37f2 100644 --- a/include/asm-i386/thread_info.h +++ b/include/asm-i386/thread_info.h @@ -32,7 +32,6 @@ struct thread_info { __u32 cpu; /* current CPU */ int preempt_count; /* 0 => preemptable, <0 => BUG */ - mm_segment_t addr_limit; /* thread address space: 0-0xBFFFFFFF for user-thead 0-0xFFFFFFFF for kernel-thread @@ -99,9 +98,7 @@ #define alloc_thread_info(tsk) \ ({ \ 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 -- 1.4.2.rc1.gbc9e-dirty _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org https://lists.osdl.org/mailman/listinfo/kernel-janitors