Commit 9ef40903 authored by Xenia Ragiadakou's avatar Xenia Ragiadakou Committed by Greg Kroah-Hartman
Browse files

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: default avatarXenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 631ae905
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");