From 36e7d239dd721a60f9bf3191ae50e726c34ee50d Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Tue, 22 Nov 2016 16:05:51 -0800 Subject: libxt_multiport: remove an unused variable Clang's static analyzer flagged the shift this patch removes as shifting a garbage value. Looks like `m` isn't used at all anyway, so we can simply remove it. Signed-off-by: George Burgess IV Signed-off-by: Florian Westphal --- extensions/libxt_multiport.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'extensions') diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c index 5c5cbe0f..07ad4cfd 100644 --- a/extensions/libxt_multiport.c +++ b/extensions/libxt_multiport.c @@ -108,7 +108,6 @@ parse_multi_ports_v1(const char *portstring, { char *buffer, *cp, *next, *range; unsigned int i; - uint16_t m; buffer = strdup(portstring); if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); @@ -133,7 +132,6 @@ parse_multi_ports_v1(const char *portstring, if (multiinfo->ports[i-1] >= multiinfo->ports[i]) xtables_error(PARAMETER_PROBLEM, "invalid portrange specified"); - m <<= 1; } } multiinfo->count = i; -- cgit v1.2.3