gdm72xx: remove unnecessary cast in gdm_wimax.c
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 22 May 2013 15:41:21 +0000 (18:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2013 22:33:14 +0000 (15:33 -0700)
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>
drivers/staging/gdm72xx/gdm_wimax.c

index 41efbeeb62f1fc284e192747029b931b6a9c9b06..dd854975db7d6f43a8fd1fc19f6d9db79e06c41e 100644 (file)
@@ -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");