NET: Fix wrong comments for unregister_net*
Subsystems (2)
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.
Signed-off-by Wang Chen <[email protected]>
--- 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
From: Wang Chen <[email protected]>
Date: Tue, 11 Dec 2007 16:50:10 +0800
Quoted 6 lines
[PATCH] NET: Fix wrong comments for unregister_net*
There are some return value comments for void functions. Fixed it.
Signed-off-by Wang Chen <[email protected]>
Applied to net-2.6, thanks!