diff options
author | Abdul Hussain <habdul@visteon.com> | 2015-06-17 07:48:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-18 07:17:06 +0300 |
commit | 25fe2274de25e1583faa38e3b7c574c0c9125de1 (patch) | |
tree | 5b8d8b1f861b1d80af3f89b3112427ad1822fe9e | |
parent | 8103a48d3691bdd8ba757ab24a273120f4b1ae47 (diff) | |
download | linux-25fe2274de25e1583faa38e3b7c574c0c9125de1.tar.xz |
Staging: wilc1000: Remove casting the values returned by kmalloc()
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>
-rw-r--r-- | drivers/staging/wilc1000/linux_mon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c index aaac9a08fe64..30d1c76e89c2 100644 --- a/drivers/staging/wilc1000/linux_mon.c +++ b/drivers/staging/wilc1000/linux_mon.c @@ -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; |