In nftnl_expr_xfrm_json_parse(), variable 'spnum' is apparently unused
so remove it.

Fixes: f4621a6f87064 ("expr: add xfrm support")
Signed-off-by: Phil Sutter <p...@nwl.cc>
---
 src/expr/xfrm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/expr/xfrm.c b/src/expr/xfrm.c
index b159d60d1e3fd..03dd771052d26 100644
--- a/src/expr/xfrm.c
+++ b/src/expr/xfrm.c
@@ -204,7 +204,7 @@ static int nftnl_expr_xfrm_json_parse(struct nftnl_expr *e, 
json_t *root,
 {
 #ifdef JSON_PARSING
        const char *key_str, *dir_str;
-       uint32_t reg, key, spnum;
+       uint32_t reg, key;
        uint8_t dir;
 
        if (nftnl_jansson_parse_reg(root, "dreg", NFTNL_TYPE_U32, &reg, err) == 
0)
-- 
2.19.0

Reply via email to