提交 ad1e187f 编写于 作者: T Tobin C. Harding 提交者: Greg Kroah-Hartman

staging: ks7010: remove unnecessary cast

Return value from kmalloc() does not require a cast.

Remove unnecessary cast.
Signed-off-by: NTobin C. Harding <me@tobin.cc>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 44dc9c86
...@@ -2400,7 +2400,7 @@ static int ks_wlan_data_write(struct net_device *dev, ...@@ -2400,7 +2400,7 @@ static int ks_wlan_data_write(struct net_device *dev,
if (priv->sleep_mode == SLP_SLEEP) if (priv->sleep_mode == SLP_SLEEP)
return -EPERM; return -EPERM;
/* for SLEEP MODE */ /* for SLEEP MODE */
wbuff = (unsigned char *)kmalloc(dwrq->length, GFP_ATOMIC); wbuff = kmalloc(dwrq->length, GFP_ATOMIC);
if (!wbuff) if (!wbuff)
return -EFAULT; return -EFAULT;
memcpy(wbuff, extra, dwrq->length); memcpy(wbuff, extra, dwrq->length);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册