diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-31 23:41:00 +0200 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-08-15 16:36:56 +0200 |
commit | 5221b34edfd05ac35c077e071095cf853325320f (patch) | |
tree | dbbc9d2354c55dc44d96e7f94c7ac10c9e2c3f7a /include/asm-avr32 | |
parent | 54bb69e25016a7b11d83f03feafafdfe2b4d0859 (diff) | |
download | blackbird-op-linux-5221b34edfd05ac35c077e071095cf853325320f.tar.gz blackbird-op-linux-5221b34edfd05ac35c077e071095cf853325320f.zip |
include/asm-avr32/pgalloc.h: kmalloc + memset conversion to kcalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r-- | include/asm-avr32/pgalloc.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/asm-avr32/pgalloc.h b/include/asm-avr32/pgalloc.h index bb82e70cde8d..75248141c613 100644 --- a/include/asm-avr32/pgalloc.h +++ b/include/asm-avr32/pgalloc.h @@ -27,13 +27,7 @@ static __inline__ void pmd_populate(struct mm_struct *mm, pmd_t *pmd, */ static __inline__ pgd_t *pgd_alloc(struct mm_struct *mm) { - unsigned int pgd_size = (USER_PTRS_PER_PGD * sizeof(pgd_t)); - pgd_t *pgd = kmalloc(pgd_size, GFP_KERNEL); - - if (pgd) - memset(pgd, 0, pgd_size); - - return pgd; + return kcalloc(USER_PTRS_PER_PGD, sizeof(pgd_t), GFP_KERNEL); } static inline void pgd_free(pgd_t *pgd) |