Skip to contentSkip to conversation

NET: Fix wrong comments for unregister_net*

PATCH Applied Wang Chen 2 participants 2 messages Dec 11, 2007

Subsystems (2)
lore
Share & tools
lore

Wang Chen

author
#0 lore raw

PATCH 1/1 NET: Fix wrong comments for unregister_net*

[PATCH] NET: Fix wrong comments for unregister_net*

There are some return value comments for void functions. Fixed it.

---
 dev.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
net/core/dev.c +2 -4
@@ -3959,8 +3959,7 @@ void synchronize_net(void)
  *	@dev: device
  *
  *	This function shuts down a device interface and removes it
- *	from the kernel tables. On success 0 is returned, on a failure
- *	a negative errno code is returned.
+ *	from the kernel tables.
  *
  *	Callers must hold the rtnl semaphore.  You may want
  *	unregister_netdev() instead of this.
@@ -3978,8 +3977,7 @@ void unregister_netdevice(struct net_dev
  *	@dev: device
  *
  *	This function shuts down a device interface and removes it
- *	from the kernel tables. On success 0 is returned, on a failure
- *	a negative errno code is returned.
+ *	from the kernel tables.
  *
  *	This is just a wrapper for unregister_netdevice that takes
  *	the rtnl semaphore.  In general you want to use this and not