OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b5541a
)
netfilter: rpfilter: Remove unused variable 'ret'.
author
Guillaume Nault
<gnault@redhat.com>
Thu, 8 Sep 2022 17:29:23 +0000
(19:29 +0200)
committer
Florian Westphal
<fw@strlen.de>
Wed, 21 Sep 2022 08:44:56 +0000
(10:44 +0200)
Commit
91a178258aea
("netfilter: rpfilter: Convert
rpfilter_lookup_reverse to new dev helper") removed the need for the
'ret' variable. This went unnoticed because of the __maybe_unused
annotation.
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/ipv4/netfilter/ipt_rpfilter.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ipt_rpfilter.c
b/net/ipv4/netfilter/ipt_rpfilter.c
index
8cd3224
..
8183bbc
100644
(file)
--- a/
net/ipv4/netfilter/ipt_rpfilter.c
+++ b/
net/ipv4/netfilter/ipt_rpfilter.c
@@
-33,7
+33,6
@@
static bool rpfilter_lookup_reverse(struct net *net, struct flowi4 *fl4,
const struct net_device *dev, u8 flags)
{
struct fib_result res;
- int ret __maybe_unused;
if (fib_lookup(net, fl4, &res, FIB_LOOKUP_IGNORE_LINKSTATE))
return false;