Skip to content

Commit

Permalink
netfilter: rpfilter: Remove unused variable 'ret'.
Browse files Browse the repository at this point in the history
Commit 91a1782 ("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>
  • Loading branch information
Guillaume Nault authored and Florian Westphal committed Sep 21, 2022
1 parent 7b5541a commit 72f5c89
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/netfilter/ipt_rpfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72f5c89

Please sign in to comment.