Skip to content

Commit

Permalink
drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast
Browse files Browse the repository at this point in the history
Convert kzalloc to kcalloc

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
  • Loading branch information
Joe Perches authored and Kyle McMartin committed Oct 22, 2010
1 parent b97680c commit f830104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/parisc/iosapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ void *iosapic_register(unsigned long hpa)
isi->isi_version = iosapic_rd_version(isi);
isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1;

vip = isi->isi_vector = (struct vector_info *)
kzalloc(sizeof(struct vector_info) * isi->isi_num_vectors, GFP_KERNEL);
vip = isi->isi_vector = kcalloc(isi->isi_num_vectors,
sizeof(struct vector_info), GFP_KERNEL);
if (vip == NULL) {
kfree(isi);
return NULL;
Expand Down

0 comments on commit f830104

Please sign in to comment.