projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81789ef
)
[DECNET]: net/decnet/dn_route.c: fix inconsequent NULL checking
author
Adrian Bunk
<bunk@stusta.de>
Tue, 21 Mar 2006 07:00:29 +0000
(23:00 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Mar 2006 07:00:29 +0000
(23:00 -0800)
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>
net/decnet/dn_route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/decnet/dn_route.c
b/net/decnet/dn_route.c
index d7037fe3cafe8f5e339b59f48240b5c56b52c72b..e172cf98d7fc3bdfda1831f06fed18fa20e097c6 100644
(file)
--- 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)
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);
}