[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:
committed by
Jens Axboe
parent
28832e8337
commit
06ff37ffb4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user