[iptables PATCH 1/9] libxtables: Drop leftover variable in xtables_numeric_to_ip6addr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 libxtables/xtables.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index e6edfb5b49464..82815cae70576 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -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;
-- 
2.31.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux