summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-09-11 22:11:22 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-09-12 20:01:35 +0200
commitc032e487e4b29ebe2b796e9c88663dd7b7897caa (patch)
tree5cae781bf65997adbaa018d46a079c854af92ce5
parenteccdc43528891d9b1298a602a8e960b0808efd14 (diff)
expr: queue: remove redundant NFTNL_EXPR_QUEUE_NUM set in json parse
We have already set NFTNL_EXPR_QUEUE_NUM when parse "num" successfully, here is wrong and redundant, remove it. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/expr/queue.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/expr/queue.c b/src/expr/queue.c
index 522231b..033c542 100644
--- a/src/expr/queue.c
+++ b/src/expr/queue.c
@@ -136,7 +136,6 @@ nftnl_expr_queue_json_parse(struct nftnl_expr *e, json_t *root,
if (nftnl_jansson_parse_val(root, "num", NFTNL_TYPE_U16, &type, err) == 0)
nftnl_expr_set_u16(e, NFTNL_EXPR_QUEUE_NUM, type);
- nftnl_expr_set_u16(e, NFTNL_EXPR_QUEUE_NUM, type);
if (nftnl_jansson_parse_val(root, "total", NFTNL_TYPE_U16, &code, err) == 0)
nftnl_expr_set_u16(e, NFTNL_EXPR_QUEUE_TOTAL, code);