mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
3871c3876f
commit
c3f14cf924
|
@ -469,8 +469,7 @@ static int capidrv_add_ack(struct capidrv_ncci *nccip,
|
||||||
{
|
{
|
||||||
struct ncci_datahandle_queue *n, **pp;
|
struct ncci_datahandle_queue *n, **pp;
|
||||||
|
|
||||||
n = (struct ncci_datahandle_queue *)
|
n = kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
|
||||||
kmalloc(sizeof(struct ncci_datahandle_queue), GFP_ATOMIC);
|
|
||||||
if (!n) {
|
if (!n) {
|
||||||
printk(KERN_ERR "capidrv: kmalloc ncci_datahandle failed\n");
|
printk(KERN_ERR "capidrv: kmalloc ncci_datahandle failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue