* [PATCH 1/1][NET] : Fix dev_put() and dev_hold() comments
[not found] <20071002143733.282284314@frecb000701.frec.bull.fr>
@ 2007-10-02 14:37 ` Benjamin Thery
2007-10-11 4:18 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Thery @ 2007-10-02 14:37 UTC (permalink / raw)
To: David Miller; +Cc: netdev
[-- Attachment #1: Fix-dev_hold-dev_put-comments.patch --]
[-- Type: text/plain, Size: 1113 bytes --]
Trivial fix: Swap comments for dev_put() and dev_hold() to get them
at the right place.
Typo introduced by 4fa57c9ea9f36f9ca852f3a88ca5d2f1aebbc960.
Signed-of-by: Benjamin Thery <benjamin.thery@bull.net>
---
include/linux/netdevice.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: net-2.6.24/include/linux/netdevice.h
===================================================================
--- net-2.6.24.orig/include/linux/netdevice.h
+++ net-2.6.24/include/linux/netdevice.h
@@ -1054,7 +1054,7 @@ extern void netdev_run_todo(void);
* dev_put - release reference to device
* @dev: network device
*
- * Hold reference to device to keep it from being freed.
+ * Release reference to device to allow it to be freed.
*/
static inline void dev_put(struct net_device *dev)
{
@@ -1065,7 +1065,7 @@ static inline void dev_put(struct net_de
* dev_hold - get reference to device
* @dev: network device
*
- * Release reference to device to allow it to be freed.
+ * Hold reference to device to keep it from being freed.
*/
static inline void dev_hold(struct net_device *dev)
{
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-11 4:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20071002143733.282284314@frecb000701.frec.bull.fr>
2007-10-02 14:37 ` [PATCH 1/1][NET] : Fix dev_put() and dev_hold() comments Benjamin Thery
2007-10-11 4:18 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox