diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-08 11:21:52 +0100 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-03-27 09:29:02 +0200 |
commit | 06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a (patch) | |
tree | 67eb8baf5abbd0776d7fe1c13106c6c9bfe10750 /drivers/block/paride | |
parent | 28832e83379afd0b0e83b78ac317290c79ebd496 (diff) | |
download | kernel_samsung_smdk4412-06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a.zip kernel_samsung_smdk4412-06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a.tar.gz kernel_samsung_smdk4412-06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a.tar.bz2 |
[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>
Diffstat (limited to 'drivers/block/paride')
-rw-r--r-- | drivers/block/paride/bpck6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/paride/bpck6.c b/drivers/block/paride/bpck6.c index 08d858a..41a237c 100644 --- a/drivers/block/paride/bpck6.c +++ b/drivers/block/paride/bpck6.c @@ -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; } |