[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>
This commit is contained in:
committed by
David S. Miller
parent
2d0817d11e
commit
1533306186
@@ -415,10 +415,10 @@ static int vif_add(struct vifctl *vifc, int mrtsock)
|
||||
return -ENOBUFS;
|
||||
break;
|
||||
case 0:
|
||||
dev=ip_dev_find(vifc->vifc_lcl_addr.s_addr);
|
||||
dev = ip_dev_find(vifc->vifc_lcl_addr.s_addr);
|
||||
if (!dev)
|
||||
return -EADDRNOTAVAIL;
|
||||
__dev_put(dev);
|
||||
dev_put(dev);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user