Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34001127 authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

[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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 81789ef5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -149,7 +149,6 @@ 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);
	call_rcu_bh(&rt->u.dst.rcu_head, dst_rcu_free);
}