From d2b961353298b26b4e4a1d7eec19ea4ae5d41c47 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 7 Mar 2018 15:23:33 +0100 Subject: src: remove unused batch support checks Follow up after cc8c5fd02448 ("netlink: remove non-batching routine"). Signed-off-by: Pablo Neira Ayuso --- src/libnftables.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libnftables.c') diff --git a/src/libnftables.c b/src/libnftables.c index 1d1975e9..9b2f65ae 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -27,7 +27,6 @@ static int nft_netlink(struct nft_ctx *nft, struct cmd *cmd; struct mnl_err *err, *tmp; LIST_HEAD(err_list); - bool batch_supported = netlink_batch_supported(nf_sock, &seqnum); int ret = 0; if (list_empty(&state->cmds)) @@ -41,7 +40,6 @@ static int nft_netlink(struct nft_ctx *nft, ctx.msgs = msgs; ctx.seqnum = cmd->seqnum = mnl_seqnum_alloc(&seqnum); ctx.batch = batch; - ctx.batch_supported = batch_supported; ctx.octx = &nft->output; ctx.nf_sock = nf_sock; ctx.cache = &nft->cache; -- cgit v1.2.3