driver: isdn: hisax: remove cast for kmalloc/kzalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Mon, 11 Mar 2013 19:15:49 +0000 (19:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 15:40:54 +0000 (11:40 -0400)
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
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/fsm.c
drivers/isdn/hisax/hfc_sx.c

index 1bb291021fdbad40ff6c094e4aa23f0cee584112..c7a94713e9ec98fae0c36d61ffdc40cd27884d70 100644 (file)
@@ -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;
index 90f34ae2b80fb340401abbe0c9941a3a95cfc736..dc4574f735ef59f24fecbeaf576e58280a56404f 100644 (file)
@@ -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");