Staging: wilc1000: Remove casting the values returned by kmalloc()
authorAbdul Hussain <habdul@visteon.com>
Wed, 17 Jun 2015 04:48:23 +0000 (04:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:17:06 +0000 (21:17 -0700)
This patch removes casting the values returned by memory allocation functions.

Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c

index aaac9a08fe6424da8c019672024018f76f35ff8d..30d1c76e89c23291fc85e6fbd9c11bae4a19139d 100644 (file)
@@ -247,7 +247,7 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
        nic = netdev_priv(dev);
 
        netif_stop_queue(dev);
-       mgmt_tx = (struct tx_complete_mon_data *)kmalloc(sizeof(struct tx_complete_mon_data), GFP_ATOMIC);
+       mgmt_tx = kmalloc(sizeof(struct tx_complete_mon_data), GFP_ATOMIC);
        if (mgmt_tx == NULL) {
                PRINT_ER("Failed to allocate memory for mgmt_tx structure\n");
                return WILC_FAIL;