OSDN Git Service

netfilter: rpfilter: Remove unused variable 'ret'.
authorGuillaume Nault <gnault@redhat.com>
Thu, 8 Sep 2022 17:29:23 +0000 (19:29 +0200)
committerFlorian 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

index 8cd3224..8183bbc 100644 (file)
@@ -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;