staging: ks7010: remove unnecessary cast
Return value from kmalloc() does not require a cast. Remove unnecessary cast. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
44dc9c86f9
commit
ad1e187f41
@ -2400,7 +2400,7 @@ static int ks_wlan_data_write(struct net_device *dev,
|
||||
if (priv->sleep_mode == SLP_SLEEP)
|
||||
return -EPERM;
|
||||
/* for SLEEP MODE */
|
||||
wbuff = (unsigned char *)kmalloc(dwrq->length, GFP_ATOMIC);
|
||||
wbuff = kmalloc(dwrq->length, GFP_ATOMIC);
|
||||
if (!wbuff)
|
||||
return -EFAULT;
|
||||
memcpy(wbuff, extra, dwrq->length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user