diff options
author | Joe Perches <joe@perches.com> | 2010-05-31 23:23:16 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2010-10-21 21:21:47 -0400 |
commit | f8301041d7bdca3197d718518242eeba0c75352f (patch) | |
tree | 2006ba3c88c26044487d8efe96008cb66c1552c4 /drivers/parisc | |
parent | b97680c419b75b0c2cf6837a9f268e2ecbaf50f6 (diff) |
drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast
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>
Diffstat (limited to 'drivers/parisc')
-rw-r--r-- | drivers/parisc/iosapic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index edab2941e1d5..a3120a09c43d 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c | |||
@@ -859,8 +859,8 @@ void *iosapic_register(unsigned long hpa) | |||
859 | isi->isi_version = iosapic_rd_version(isi); | 859 | isi->isi_version = iosapic_rd_version(isi); |
860 | isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1; | 860 | isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1; |
861 | 861 | ||
862 | vip = isi->isi_vector = (struct vector_info *) | 862 | vip = isi->isi_vector = kcalloc(isi->isi_num_vectors, |
863 | kzalloc(sizeof(struct vector_info) * isi->isi_num_vectors, GFP_KERNEL); | 863 | sizeof(struct vector_info), GFP_KERNEL); |
864 | if (vip == NULL) { | 864 | if (vip == NULL) { |
865 | kfree(isi); | 865 | kfree(isi); |
866 | return NULL; | 866 | return NULL; |