summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/ethtool.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-24 17:48:16 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 01:50:37 +0200
commit655b4d16ac5e551e5c8dac5812156edfd87bf822 (patch)
treedfb8fc48d12c111d77f487d47f70fc117164bba7 /drivers/net/wireless/libertas/ethtool.c
parent[PATCH] libertas: advertise 11g ad-hoc rates (diff)
downloadlinux-655b4d16ac5e551e5c8dac5812156edfd87bf822.tar.xz
linux-655b4d16ac5e551e5c8dac5812156edfd87bf822.zip
[PATCH] net: Kill some unneeded allocation return value casts in libertas
kmalloc() and friends return void*, no need to cast it. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/ethtool.c')
-rw-r--r--drivers/net/wireless/libertas/ethtool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c
index ec99cb825871..d793d843f7d5 100644
--- a/drivers/net/wireless/libertas/ethtool.c
+++ b/drivers/net/wireless/libertas/ethtool.c
@@ -60,8 +60,7 @@ static int libertas_ethtool_get_eeprom(struct net_device *dev,
// mutex_lock(&priv->mutex);
- adapter->prdeeprom =
- (char *)kmalloc(eeprom->len+sizeof(regctrl), GFP_KERNEL);
+ adapter->prdeeprom = kmalloc(eeprom->len+sizeof(regctrl), GFP_KERNEL);
if (!adapter->prdeeprom)
return -ENOMEM;
memcpy(adapter->prdeeprom, &regctrl, sizeof(regctrl));