Skip to content

Commit

Permalink
[NET]: Fix dev_put() and dev_hold() comments
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Benjamin Thery authored and David S. Miller committed Oct 11, 2007
1 parent cd40b7d commit 9ef4429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,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)
{
Expand All @@ -1075,7 +1075,7 @@ static inline void dev_put(struct net_device *dev)
* 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)
{
Expand Down

0 comments on commit 9ef4429

Please sign in to comment.