* [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value
[not found] <513EB23D.7020303@cn.fujitsu.com>
@ 2013-03-12 5:13 ` 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
1 sibling, 1 reply; 4+ messages in thread
From: Zhang Yanfei @ 2013-03-12 5:13 UTC (permalink / raw)
To: Karsten Keil, Andrew Morton; +Cc: netdev, linux-kernel@vger.kernel.org
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 09/18] driver: isdn: hisax: remove cast for kmalloc/kzalloc return value
[not found] <513EB23D.7020303@cn.fujitsu.com>
2013-03-12 5:13 ` [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value Zhang Yanfei
@ 2013-03-12 5:15 ` Zhang Yanfei
2013-03-12 15:41 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Zhang Yanfei @ 2013-03-12 5:15 UTC (permalink / raw)
To: Karsten Keil, Andrew Morton; +Cc: netdev, linux-kernel@vger.kernel.org
remove cast for kmalloc/kzalloc 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/hisax/fsm.c | 2 +-
drivers/isdn/hisax/hfc_sx.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/isdn/hisax/fsm.c b/drivers/isdn/hisax/fsm.c
index 1bb2910..c7a9471 100644
--- a/drivers/isdn/hisax/fsm.c
+++ b/drivers/isdn/hisax/fsm.c
@@ -26,7 +26,7 @@ FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount)
{
int i;
- fsm->jumpmatrix = (FSMFNPTR *)
+ fsm->jumpmatrix =
kzalloc(sizeof(FSMFNPTR) * fsm->state_count * fsm->event_count, GFP_KERNEL);
if (!fsm->jumpmatrix)
return -ENOMEM;
diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c
index 90f34ae..dc4574f 100644
--- a/drivers/isdn/hisax/hfc_sx.c
+++ b/drivers/isdn/hisax/hfc_sx.c
@@ -1479,7 +1479,7 @@ int setup_hfcsx(struct IsdnCard *card)
release_region(cs->hw.hfcsx.base, 2);
return (0);
}
- if (!(cs->hw.hfcsx.extra = (void *)
+ if (!(cs->hw.hfcsx.extra =
kmalloc(sizeof(struct hfcsx_extra), GFP_ATOMIC))) {
release_region(cs->hw.hfcsx.base, 2);
printk(KERN_WARNING "HFC-SX: unable to allocate memory\n");
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value
2013-03-12 5:13 ` [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value Zhang Yanfei
@ 2013-03-12 15:41 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-03-12 15:41 UTC (permalink / raw)
To: zhangyanfei; +Cc: isdn, akpm, netdev, linux-kernel
From: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Date: Tue, 12 Mar 2013 13:13:47 +0800
> remove cast for kmalloc return value.
>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 09/18] driver: isdn: hisax: remove cast for kmalloc/kzalloc return value
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
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-03-12 15:41 UTC (permalink / raw)
To: zhangyanfei; +Cc: isdn, akpm, netdev, linux-kernel
From: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Date: Tue, 12 Mar 2013 13:15:49 +0800
> remove cast for kmalloc/kzalloc return value.
>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-12 15:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <513EB23D.7020303@cn.fujitsu.com>
2013-03-12 5:13 ` [PATCH 08/18] driver: isdn: capi: remove cast for kmalloc return value 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
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).