diff options
author | George Burgess IV <gbiv@google.com> | 2016-11-22 16:05:51 -0800 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2016-11-23 01:25:44 +0100 |
commit | 36e7d239dd721a60f9bf3191ae50e726c34ee50d (patch) | |
tree | 227025d8b0a2ff0a200947166b7eab8b759ae1de /extensions | |
parent | c44820553f5c0cba2b5caa61de935b57cd62ec88 (diff) |
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 <gbiv@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libxt_multiport.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |