CLEANUP: acl: Remove unused variable when releasing an acl expression

The "unresolved" variable is unused since commit 9fa0df5 ("BUG/MINOR: acl:
Fix freeing of expr->smp in prune_acl_expr").

This patch should fix the issue #1359.
This commit is contained in:
Christopher Faulet 2021-09-10 15:17:45 +02:00
parent 8f1669b10f
commit 51324b8720
1 changed files with 0 additions and 2 deletions

View File

@ -101,7 +101,6 @@ struct acl_keyword *find_acl_kw(const char *kw)
static struct acl_expr *prune_acl_expr(struct acl_expr *expr) static struct acl_expr *prune_acl_expr(struct acl_expr *expr)
{ {
struct arg *arg; struct arg *arg;
int unresolved = 0;
pattern_prune(&expr->pat); pattern_prune(&expr->pat);
@ -110,7 +109,6 @@ static struct acl_expr *prune_acl_expr(struct acl_expr *expr)
break; break;
if (arg->type == ARGT_STR || arg->unresolved) { if (arg->type == ARGT_STR || arg->unresolved) {
chunk_destroy(&arg->data.str); chunk_destroy(&arg->data.str);
unresolved |= arg->unresolved;
arg->unresolved = 0; arg->unresolved = 0;
} }
} }