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>
This commit is contained in:
Joe Perches 2010-05-31 20:23:16 -07:00 коммит произвёл Kyle McMartin
Родитель b97680c419
Коммит f8301041d7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;