]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: Drop leftover variable in xtables_numeric_to_ip6addr()
authorPhil Sutter <phil@nwl.cc>
Fri, 13 Nov 2020 20:04:39 +0000 (21:04 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 7 Jun 2021 12:50:27 +0000 (14:50 +0200)
Variable 'err' was only used in removed debug code, so drop it as well.

Fixes: 7f526c9373c17 ("libxtables: xtables: remove unnecessary debug code")
Signed-off-by: Phil Sutter <phil@nwl.cc>
libxtables/xtables.c

index e6edfb5b49464b2f50ac9a5fe91e5018a234d278..82815cae70576db109cac34665d231582d486ee0 100644 (file)
@@ -1808,9 +1808,8 @@ const char *xtables_ip6mask_to_numeric(const struct in6_addr *addrp)
 struct in6_addr *xtables_numeric_to_ip6addr(const char *num)
 {
        static struct in6_addr ap;
-       int err;
 
-       if ((err = inet_pton(AF_INET6, num, &ap)) == 1)
+       if (inet_pton(AF_INET6, num, &ap) == 1)
                return &ap;
 
        return NULL;