aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_cs.c
diff options
context:
space:
mode:
authorBurman Yan <yan_952@hotmail.com>2007-02-14 03:33:07 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 11:09:52 -0500
commit8f31bb39ec2a5622974666c72257e74c22492602 (patch)
tree48f38c994f02c8699fe2a69599e8cc1bc8d36ea8 /drivers/serial/serial_cs.c
parent3689a0ec60bc8f56cc372c1dfa0d89dab48f7c9c (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/serial_cs.c')
-rw-r--r--drivers/serial/serial_cs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c
index 431433f4dd6d..10baa2c91302 100644
--- a/drivers/serial/serial_cs.c
+++ b/drivers/serial/serial_cs.c
@@ -334,10 +334,9 @@ static int serial_probe(struct pcmcia_device *link)
334 DEBUG(0, "serial_attach()\n"); 334 DEBUG(0, "serial_attach()\n");
335 335
336 /* Create new serial device */ 336 /* Create new serial device */
337 info = kmalloc(sizeof (*info), GFP_KERNEL); 337 info = kzalloc(sizeof (*info), GFP_KERNEL);
338 if (!info) 338 if (!info)
339 return -ENOMEM; 339 return -ENOMEM;
340 memset(info, 0, sizeof (*info));
341 info->p_dev = link; 340 info->p_dev = link;
342 link->priv = info; 341 link->priv = info;
343 342