Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 026e14ae authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: remove inner block in wilc_netdev_init()



Cleanup patch to remove unnecessary inner block ( {/**/} ) in
wilc_netdev_init().

Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad109ba1
Loading
Loading
Loading
Loading
+16 −18
Original line number Diff line number Diff line
@@ -1141,6 +1141,8 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
	register_inetaddr_notifier(&g_dev_notifier);

	for (i = 0; i < NUM_CONCURRENT_IFC; i++) {
		struct wireless_dev *wdev;

		ndev = alloc_etherdev(sizeof(struct wilc_vif));
		if (!ndev)
			return -ENOMEM;
@@ -1163,9 +1165,6 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,

		ndev->netdev_ops = &wilc_netdev_ops;

		{
			struct wireless_dev *wdev;

		wdev = wilc_create_wiphy(ndev, dev);

		if (dev)
@@ -1183,7 +1182,6 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
		vif->netstats.tx_packets = 0;
		vif->netstats.rx_bytes = 0;
		vif->netstats.tx_bytes = 0;
		}

		ret = register_netdev(ndev);
		if (ret)