Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3f14cf9 authored by Zhang Yanfei's avatar Zhang Yanfei Committed by David S. Miller
Browse files

driver: isdn: capi: remove cast for kmalloc return value



remove cast for kmalloc return value.

Signed-off-by: default avatarZhang 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: default avatarDavid S. Miller <davem@davemloft.net>
parent 3871c387
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;