From patchwork Tue Jun 1 03:23:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 103376 X-Patchwork-Delegate: kyle@mcmartin.ca Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o513x8EY005438 for ; Tue, 1 Jun 2010 03:59:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754794Ab0FADXd (ORCPT ); Mon, 31 May 2010 23:23:33 -0400 Received: from mail.perches.com ([173.55.12.10]:2473 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754766Ab0FADXc (ORCPT ); Mon, 31 May 2010 23:23:32 -0400 Received: from localhost.localdomain (new-host-11.home [192.168.1.151]) by mail.perches.com (Postfix) with ESMTP id 731A02436E; Mon, 31 May 2010 20:23:23 -0700 (PDT) From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Kyle McMartin , Helge Deller , "James E.J. Bottomley" , linux-parisc@vger.kernel.org Subject: [PATCH 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Date: Mon, 31 May 2010 20:23:16 -0700 Message-Id: X-Mailer: git-send-email 1.7.0.3.311.g6a6955 In-Reply-To: References: Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 03:59:08 +0000 (UTC) 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;