diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-03-21 01:32:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:32:28 -0500 |
commit | 153330618691694af64f39fb56c9de051862380e (patch) | |
tree | 45ccb622bf0d13f6a0a663ba8af39f9dc2c9122e /net/ipv4 | |
parent | 2d0817d11eaec57435feb61493331a763f732a2b (diff) |
[NET]: dev_put/dev_hold cleanup
Get rid of the old __dev_put macro that is just a hold over from pre 2.6
kernel. And turn dev_hold into an inline instead of a macro.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/igmp.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipmr.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 3ec502f19da0..d512239a1473 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -1382,7 +1382,7 @@ static struct in_device * ip_mc_find_dev(struct ip_mreqn *imr) | |||
1382 | dev = ip_dev_find(imr->imr_address.s_addr); | 1382 | dev = ip_dev_find(imr->imr_address.s_addr); |
1383 | if (!dev) | 1383 | if (!dev) |
1384 | return NULL; | 1384 | return NULL; |
1385 | __dev_put(dev); | 1385 | dev_put(dev); |
1386 | } | 1386 | } |
1387 | 1387 | ||
1388 | if (!dev && !ip_route_output_key(&rt, &fl)) { | 1388 | if (!dev && !ip_route_output_key(&rt, &fl)) { |
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 5c94c222e3f3..717ab7d6d7b6 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -415,10 +415,10 @@ static int vif_add(struct vifctl *vifc, int mrtsock) | |||
415 | return -ENOBUFS; | 415 | return -ENOBUFS; |
416 | break; | 416 | break; |
417 | case 0: | 417 | case 0: |
418 | dev=ip_dev_find(vifc->vifc_lcl_addr.s_addr); | 418 | dev = ip_dev_find(vifc->vifc_lcl_addr.s_addr); |
419 | if (!dev) | 419 | if (!dev) |
420 | return -EADDRNOTAVAIL; | 420 | return -EADDRNOTAVAIL; |
421 | __dev_put(dev); | 421 | dev_put(dev); |
422 | break; | 422 | break; |
423 | default: | 423 | default: |
424 | return -EINVAL; | 424 | return -EINVAL; |