linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: tip-bot for Zhang Yanfei <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
	akpm@linux-foundation.org, zhangyanfei@cn.fujitsu.com,
	tglx@linutronix.de
Subject: [tip:x86/platform] x86/platform/intel/mrst: Remove cast for kmalloc() return value
Date: Tue, 12 Mar 2013 01:50:35 -0700	[thread overview]
Message-ID: <tip-ad0304cfd90f46bfcae3a6cd2b69067741541730@git.kernel.org> (raw)
In-Reply-To: <513EB5DA.2010300@cn.fujitsu.com>

Commit-ID:  ad0304cfd90f46bfcae3a6cd2b69067741541730
Gitweb:     http://git.kernel.org/tip/ad0304cfd90f46bfcae3a6cd2b69067741541730
Author:     Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
AuthorDate: Tue, 12 Mar 2013 12:58:02 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 12 Mar 2013 09:10:20 +0100

x86/platform/intel/mrst: Remove cast for kmalloc() return value

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/513EB5DA.2010300@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/platform/mrst/mrst.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
index e31bcd8..a0a0a43 100644
--- a/arch/x86/platform/mrst/mrst.c
+++ b/arch/x86/platform/mrst/mrst.c
@@ -356,8 +356,7 @@ static int __init sfi_parse_gpio(struct sfi_table_header *table)
 	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry);
 	pentry = (struct sfi_gpio_table_entry *)sb->pentry;
 
-	gpio_table = (struct sfi_gpio_table_entry *)
-				kmalloc(num * sizeof(*pentry), GFP_KERNEL);
+	gpio_table = kmalloc(num * sizeof(*pentry), GFP_KERNEL);
 	if (!gpio_table)
 		return -1;
 	memcpy(gpio_table, pentry, num * sizeof(*pentry));

  reply	other threads:[~2013-03-12  8:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12  4:42 [PATCH 01/18] arm: remove cast for kzalloc return value Zhang Yanfei
2013-03-12  4:47 ` [PATCH 02/18] ia64: remove cast for kmalloc " Zhang Yanfei
2013-03-12  4:54 ` [PATCH 03/18] powerpc: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12  4:58 ` [PATCH 04/18] x86: platform: mrst: remove cast for kmalloc " Zhang Yanfei
2013-03-12  8:50   ` tip-bot for Zhang Yanfei [this message]
2013-03-12  5:03 ` [PATCH 05/18] driver: staging: csr: " Zhang Yanfei
2013-03-12  5:07 ` [PATCH 06/18] driver: gpu: drm: i915: remove cast for kzalloc " Zhang Yanfei
2013-03-12  5:10 ` [PATCH 07/18] driver: hv: remove cast for kmalloc " Zhang Yanfei
2013-03-12  5:13 ` [PATCH 08/18] driver: isdn: capi: " Zhang Yanfei
2013-03-12 15:41   ` David Miller
2013-03-12  5:15 ` [PATCH 09/18] driver: isdn: hisax: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12 15:41   ` David Miller
2013-03-12  5:18 ` [PATCH 10/18] driver: s390: block: remove cast for kzalloc " Zhang Yanfei
2013-03-12  7:22   ` Heiko Carstens
2013-03-12  5:22 ` [PATCH 11/18] driver: s390: net: " Zhang Yanfei
2013-03-12  7:25   ` Heiko Carstens
2013-03-12  5:25 ` [PATCH 12/18] driver: scsi: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12  9:27   ` James Bottomley
2013-03-12 16:32     ` Joe Perches
2013-03-12  5:27 ` [PATCH 13/18] driver: tty: serial: remove cast for kzalloc " Zhang Yanfei
2013-03-12  5:29 ` [PATCH 14/18] driver: tty: vt: remove cast for kmalloc " Zhang Yanfei
2013-03-12  5:33 ` [PATCH 15/18] driver: usb: storage: " Zhang Yanfei
2013-03-12  5:35 ` [PATCH 16/18] fs: befs: " Zhang Yanfei
2013-03-12  5:37 ` [PATCH 17/18] fs: ufs: " Zhang Yanfei
2013-03-12  5:39 ` [PATCH 18/18] net: sctp: remove cast for kmalloc/kzalloc " Zhang Yanfei
2013-03-12 11:35   ` Neil Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-ad0304cfd90f46bfcae3a6cd2b69067741541730@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=zhangyanfei@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).