[PATCH] kzalloc() conversion in drivers/block

this patch converts drivers/block to kzalloc usage.
Compile tested with allyesconfig.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
Eric Sesterhenn
2006-03-08 11:21:52 +01:00
committed by Jens Axboe
parent 28832e8337
commit 06ff37ffb4
4 changed files with 7 additions and 16 deletions
+1 -2
View File
@@ -224,10 +224,9 @@ static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose )
static int bpck6_init_proto(PIA *pi)
{
Interface *p = kmalloc(sizeof(Interface), GFP_KERNEL);
Interface *p = kzalloc(sizeof(Interface), GFP_KERNEL);
if (p) {
memset(p, 0, sizeof(Interface));
pi->private = (unsigned long)p;
return 0;
}