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

Commit 04c66201 authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman
Browse files

staging: ft1000: Fix coding style.



Fix coding style in ft1000CleanupProc and ft1000InitProc
functions.

Signed-off-by: default avatarMarek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5fd866fb
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -210,8 +210,9 @@ int ft1000InitProc(struct net_device *dev)
	}

	ft1000_proc_file =
    create_proc_read_entry (dev->name, 0644, info->ft1000_proc_dir,
			    ft1000ReadProc, dev);
		create_proc_read_entry(dev->name, 0644,
			info->ft1000_proc_dir, ft1000ReadProc, dev);

	if (ft1000_proc_file == NULL) {
		printk(KERN_WARNING "Unable to create /proc entry.\n");
		ret = -EINVAL;
@@ -219,6 +220,7 @@ int ft1000InitProc(struct net_device *dev)
	}

	snprintf(info->netdevname, IFNAMSIZ, "%s", dev->name);

	ret = register_netdevice_notifier(&ft1000_netdev_notifier);
	if (ret)
		goto fail_notif;
@@ -233,12 +235,9 @@ fail:
	return ret;
}

void
ft1000CleanupProc(struct ft1000_info *info)
void ft1000CleanupProc(struct ft1000_info *info)
{
	remove_proc_entry(info->netdevname, info->ft1000_proc_dir);
	remove_proc_entry(FT1000_PROC_DIR, FTNET_PROC);
	unregister_netdevice_notifier(&ft1000_netdev_notifier);

  return;
}