summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-05-22 18:41:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-22 15:33:14 -0700
commit9ef4090385a0c35192229ca77c9de273824040b4 (patch)
treeb4963e9fa82b9a405be6ca0799cd300ffe319395 /drivers
parent631ae9054d148ff474d442d73309d9ea2a6ea7e6 (diff)
downloadblackbird-op-linux-9ef4090385a0c35192229ca77c9de273824040b4.tar.gz
blackbird-op-linux-9ef4090385a0c35192229ca77c9de273824040b4.zip
gdm72xx: remove unnecessary cast in gdm_wimax.c
This patch removes an unnecessary cast on the return value of alloc_netdev(), since alloc_netdev() returns a pointer to the allocated struct net_device anyway. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/gdm72xx/gdm_wimax.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c
index 41efbeeb62f1..dd854975db7d 100644
--- a/drivers/staging/gdm72xx/gdm_wimax.c
+++ b/drivers/staging/gdm72xx/gdm_wimax.c
@@ -939,8 +939,7 @@ int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev)
struct net_device *dev;
int ret;
- dev = (struct net_device *)alloc_netdev(sizeof(*nic),
- "wm%d", ether_setup);
+ dev = alloc_netdev(sizeof(*nic), "wm%d", ether_setup);
if (dev == NULL) {
pr_err("alloc_etherdev failed\n");
OpenPOWER on IntegriCloud