diff options
author | Burman Yan <yan_952@hotmail.com> | 2007-02-14 03:33:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:52 -0500 |
commit | 8f31bb39ec2a5622974666c72257e74c22492602 (patch) | |
tree | 48f38c994f02c8699fe2a69599e8cc1bc8d36ea8 /drivers/serial/ip22zilog.c | |
parent | 3689a0ec60bc8f56cc372c1dfa0d89dab48f7c9c (diff) |
[PATCH] serial: replace kmalloc+memset with kzalloc
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/ip22zilog.c')
-rw-r--r-- | drivers/serial/ip22zilog.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/serial/ip22zilog.c b/drivers/serial/ip22zilog.c index 0746c9446ae0..c475f22fb681 100644 --- a/drivers/serial/ip22zilog.c +++ b/drivers/serial/ip22zilog.c | |||
@@ -922,13 +922,7 @@ static int zilog_irq = -1; | |||
922 | 922 | ||
923 | static void * __init alloc_one_table(unsigned long size) | 923 | static void * __init alloc_one_table(unsigned long size) |
924 | { | 924 | { |
925 | void *ret; | 925 | return kzalloc(size, GFP_KERNEL); |
926 | |||
927 | ret = kmalloc(size, GFP_KERNEL); | ||
928 | if (ret != NULL) | ||
929 | memset(ret, 0, size); | ||
930 | |||
931 | return ret; | ||
932 | } | 926 | } |
933 | 927 | ||
934 | static void __init ip22zilog_alloc_tables(void) | 928 | static void __init ip22zilog_alloc_tables(void) |