diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-21 02:00:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 02:00:29 -0500 |
commit | 3400112794724d9bdc3de6e1ce1475b726e6ca7d (patch) | |
tree | dcf7dd0027f0cae9a974c250436f75c769801978 /net/decnet/dn_route.c | |
parent | 81789ef5c9a435fbf94224987efe6fbb97ffab09 (diff) |
[DECNET]: net/decnet/dn_route.c: fix inconsequent NULL checking
The Coverity checker noted this inconsequent NULL checking in
dnrt_drop().
Since all callers ensure that NULL isn't passed, we can simply remove
the check.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r-- | net/decnet/dn_route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index d7037fe3cafe..e172cf98d7fc 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -149,8 +149,7 @@ static inline void dnrt_free(struct dn_route *rt) | |||
149 | 149 | ||
150 | static inline void dnrt_drop(struct dn_route *rt) | 150 | static inline void dnrt_drop(struct dn_route *rt) |
151 | { | 151 | { |
152 | if (rt) | 152 | dst_release(&rt->u.dst); |
153 | dst_release(&rt->u.dst); | ||
154 | call_rcu_bh(&rt->u.dst.rcu_head, dst_rcu_free); | 153 | call_rcu_bh(&rt->u.dst.rcu_head, dst_rcu_free); |
155 | } | 154 | } |
156 | 155 | ||