netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NET: Fix wrong comments for unregister_net*
@ 2007-12-11  8:50 Wang Chen
  2007-12-11 10:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Chen @ 2007-12-11  8:50 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

[PATCH] NET: Fix wrong comments for unregister_net*

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

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
 dev.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.24.rc4.org/net/core/dev.c	2007-12-11 16:40:36.000000000 +0800
+++ linux-2.6.24.rc4/net/core/dev.c	2007-12-11 16:42:40.000000000 +0800
@@ -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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] NET: Fix wrong comments for unregister_net*
  2007-12-11  8:50 [PATCH] NET: Fix wrong comments for unregister_net* Wang Chen
@ 2007-12-11 10:28 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-12-11 10:28 UTC (permalink / raw)
  To: wangchen; +Cc: netdev

From: Wang Chen <wangchen@cn.fujitsu.com>
Date: Tue, 11 Dec 2007 16:50:10 +0800

> [PATCH] NET: Fix wrong comments for unregister_net*
> 
> There are some return value comments for void functions.
> Fixed it.
> 
> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>

Applied to net-2.6, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-11 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11  8:50 [PATCH] NET: Fix wrong comments for unregister_net* Wang Chen
2007-12-11 10:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).