From: Tobin C. Harding Date: Mon, 13 Mar 2017 22:54:07 +0000 (+1100) Subject: staging: ks7010: remove unnecessary cast X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ad1e187f41a6dc008e5057805dc713551108799a;p=openwrt%2Fstaging%2Fblogic.git staging: ks7010: remove unnecessary cast Return value from kmalloc() does not require a cast. Remove unnecessary cast. Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index d55b5e30c038..9fa1ee7255ca 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -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);