diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-12-11 05:00:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:57:05 -0500 |
commit | 64b7d96167977850f4a24e52dd0a76b03c6542cf (patch) | |
tree | c3d23f90517d340ea827cfd1066a8543b95963cb /net/core/dst.c | |
parent | 005011211f559113686938c2c252b8ee1ab855b5 (diff) |
[NET]: dst_ifdown() cleanup
This cleanup shrinks size of net/core/dst.o on i386 from 1299 to 1289 bytes.
(This is because dev_hold()/dev_put() are doing atomic_inc()/atomic_dec() and
force compiler to re-evaluate memory contents.)
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dst.c')
-rw-r--r-- | net/core/dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 5c6cfc4e7fdb..7eceebaabaaa 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -284,8 +284,8 @@ static inline void dst_ifdown(struct dst_entry *dst, struct net_device *dev, | |||
284 | dev_put(dev); | 284 | dev_put(dev); |
285 | if (dst->neighbour && dst->neighbour->dev == dev) { | 285 | if (dst->neighbour && dst->neighbour->dev == dev) { |
286 | dst->neighbour->dev = dst->dev; | 286 | dst->neighbour->dev = dst->dev; |
287 | dev_hold(dst->dev); | ||
287 | dev_put(dev); | 288 | dev_put(dev); |
288 | dev_hold(dst->neighbour->dev); | ||
289 | } | 289 | } |
290 | } | 290 | } |
291 | } | 291 | } |