diff mbox

[14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast

Message ID ba7d48df75ca37c39b0e519921c116a617e71db7.1275360951.git.joe@perches.com (mailing list archive)
State Accepted
Delegated to: kyle mcmartin
Headers show

Commit Message

Joe Perches June 1, 2010, 3:23 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c
index c768367..3e6f56c 100644
--- a/drivers/parisc/iosapic.c
+++ b/drivers/parisc/iosapic.c
@@ -891,8 +891,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;