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

Commit ad1e187f authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: remove unnecessary cast



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

Remove unnecessary cast.

Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 44dc9c86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);