aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/pcbit/layer2.c
diff options
context:
space:
mode:
authorBurman Yan <yan_952@hotmail.com>2006-12-08 05:39:35 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:01 -0500
commit41f96935b4c41daea2c4dbbf137960375cf764c1 (patch)
tree9af3af5e41f68baf063b5f929797c837169bb9df /drivers/isdn/pcbit/layer2.c
parent0b2dd130a5a8774a30de1f94266f6b9a9892153c (diff)
[PATCH] isdn: replace kmalloc+memset with kzalloc
Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/pcbit/layer2.c')
-rw-r--r--drivers/isdn/pcbit/layer2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/pcbit/layer2.c b/drivers/isdn/pcbit/layer2.c
index 0c9f6df873fc..6ff85574e941 100644
--- a/drivers/isdn/pcbit/layer2.c
+++ b/drivers/isdn/pcbit/layer2.c
@@ -369,13 +369,12 @@ pcbit_receive(struct pcbit_dev *dev)
369 kfree(dev->read_frame); 369 kfree(dev->read_frame);
370 dev->read_frame = NULL; 370 dev->read_frame = NULL;
371 } 371 }
372 frame = kmalloc(sizeof(struct frame_buf), GFP_ATOMIC); 372 frame = kzalloc(sizeof(struct frame_buf), GFP_ATOMIC);
373 373
374 if (frame == NULL) { 374 if (frame == NULL) {
375 printk(KERN_WARNING "kmalloc failed\n"); 375 printk(KERN_WARNING "kmalloc failed\n");
376 return; 376 return;
377 } 377 }
378 memset(frame, 0, sizeof(struct frame_buf));
379 378
380 cpu = pcbit_readb(dev); 379 cpu = pcbit_readb(dev);
381 proc = pcbit_readb(dev); 380 proc = pcbit_readb(dev);