From: Zhang Yanfei <zhangyanfei@cn•fujitsu.com>
To: Karsten Keil <isdn@linux-pingi•de>,
Andrew Morton <akpm@linux-foundation•org>
Cc: netdev@vger•kernel.org,
"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>
Subject: [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value
Date: Tue, 12 Mar 2013 13:13:47 +0800 [thread overview]
Message-ID: <513EB98B.9010400@cn.fujitsu.com> (raw)
In-Reply-To: <513EB23D.7020303@cn.fujitsu.com>
remove cast for kmalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn•fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation•org>
Cc: Karsten Keil <isdn@linux-pingi•de>
Cc: netdev@vger•kernel.org
---
drivers/isdn/capi/capidrv.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index 832bc80..cc9f192 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -469,8 +469,7 @@ static int capidrv_add_ack(struct capidrv_ncci *nccip,
{
struct ncci_datahandle_queue *n, **pp;
- n = (struct ncci_datahandle_queue *)
- kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
+ n = kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
if (!n) {
printk(KERN_ERR "capidrv: kmalloc ncci_datahandle failed\n");
return -1;
--
1.7.1
next parent reply other threads:[~2013-03-12 5:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <513EB23D.7020303@cn.fujitsu.com>
2013-03-12 5:13 ` Zhang Yanfei [this message]
2013-03-12 15:41 ` [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value 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
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=513EB98B.9010400@cn.fujitsu.com \
--to=zhangyanfei@cn$(echo .)fujitsu.com \
--cc=akpm@linux-foundation$(echo .)org \
--cc=isdn@linux-pingi$(echo .)de \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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