Skip to content

Commit

Permalink
[DECNET]: net/decnet/dn_route.c: fix inconsequent NULL checking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Mar 21, 2006
1 parent 81789ef commit 3400112
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ static inline void dnrt_free(struct dn_route *rt)

static inline void dnrt_drop(struct dn_route *rt)
{
if (rt)
dst_release(&rt->u.dst);
dst_release(&rt->u.dst);
call_rcu_bh(&rt->u.dst.rcu_head, dst_rcu_free);
}

Expand Down

0 comments on commit 3400112

Please sign in to comment.