Commit 25fe2274 authored by Abdul Hussain's avatar Abdul Hussain Committed by Greg Kroah-Hartman

Staging: wilc1000: Remove casting the values returned by kmalloc()

This patch removes casting the values returned by memory allocation functions.
Signed-off-by: default avatarAbdul Hussain <habdul@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8103a48d
...@@ -247,7 +247,7 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len) ...@@ -247,7 +247,7 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
nic = netdev_priv(dev); nic = netdev_priv(dev);
netif_stop_queue(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) { if (mgmt_tx == NULL) {
PRINT_ER("Failed to allocate memory for mgmt_tx structure\n"); PRINT_ER("Failed to allocate memory for mgmt_tx structure\n");
return WILC_FAIL; return WILC_FAIL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment