diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-11 19:13:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-12 11:40:54 -0400 |
commit | c3f14cf924c7d97a89d505bdc0a06cf0d8efcdf6 (patch) | |
tree | 74774fff815875697ce558228e5a0adb074a85a3 /drivers | |
parent | 3871c3876f8084a2f40ba3c3fc20a6bb5754d88d (diff) | |
download | linux-stable-c3f14cf924c7d97a89d505bdc0a06cf0d8efcdf6.tar.gz linux-stable-c3f14cf924c7d97a89d505bdc0a06cf0d8efcdf6.tar.bz2 linux-stable-c3f14cf924c7d97a89d505bdc0a06cf0d8efcdf6.zip |
driver: isdn: capi: remove cast for kmalloc return value
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
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 832bc807ed20..cc9f1927a322 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; |