Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1322355imc; Sun, 17 Mar 2019 10:28:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHRiMIK3hrk9N3Lm8ebSzSLIwmRMdBNUtEdw+mb65Ukj7fiHg4qXLfYNGl2QKAi7G29nga X-Received: by 2002:a62:3585:: with SMTP id c127mr14882102pfa.71.1552843692720; Sun, 17 Mar 2019 10:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552843692; cv=none; d=google.com; s=arc-20160816; b=VjranyowQilTKzi9+mx1piTYDSMISSWQPgyxwrUmpf4m5kzUxB2ANIhQeE+ZGDnsQY KJBHdekbhobgpaz4P19CCI9QKH+BfMREV2ZHHKw+4Ap9r38Nx2ffTTa+5zrE80hasdi2 et5kvbdpX7IFvgy8j87bTAp/CBOLy9zvsmlMWxEqMMVPNrCC0Y/i2rqKARk/hhp6fmq5 g2HwjfGaXPasvSHKltPbZcvpPeurHQ9fXt4B8aJ2SvcR8J7oPg9W0GqLBa6e4KzldCTe sqlWjdFabgIPtDta580wVGm19jAo0lrsrK0O4Vay0BnuUINshDY2C7LhdZ5+0melyPi2 tSNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=B7BeGqEanP13V9iv3ZME0Qgas1iT3fkJ5DLQv0tDHGk=; b=Q3I4A8/uBZZAqfMeyJmUoC4JtWmoNKfDgNAPtdyfODYahUp6Uwq2BR2QJZIQX5EJSR W6t/0EqV3+20cunJwLSFAFkwI0DUJouo09YD+neU3OECQkwZXuR6HJ5ALhPOWVopUYyF vtpSFNmE386o8SGTI4uI+I5TL60DLkIfzynPm2UKQSJdAeK6+y9YO/LTr13p8e/fNXIl YEzxCaCI2gr4jhCNlJPH9dr05a21D9eOOi9GWDsg2D8w8gw5tgHDRV8mtYSECHuTAfZ1 7tC2nmG3uhKvzpStTkbhNJ2Bk6XvzD8brRWuuNUrmyWHVNr5+epcCSwv+Nqsjob52Yuc jk4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si6697211pgt.234.2019.03.17.10.27.57; Sun, 17 Mar 2019 10:28:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbfCQR1R (ORCPT + 99 others); Sun, 17 Mar 2019 13:27:17 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:52350 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbfCQR1R (ORCPT ); Sun, 17 Mar 2019 13:27:17 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1h5ZYx-0007Dy-6E; Sun, 17 Mar 2019 17:27:07 +0000 From: Colin King To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S . Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] netfilter: nf_tables: remove unused parameter ctx Date: Sun, 17 Mar 2019 17:27:06 +0000 Message-Id: <20190317172706.26050-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Function nf_tables_set_desc_parse parameter ctx is not being used so remove it as it is redundant. Signed-off-by: Colin Ian King --- net/netfilter/nf_tables_api.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index faf6bd10a19f..e9d6f4c32a03 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -3434,8 +3434,7 @@ static int nf_tables_getset(struct net *net, struct sock *nlsk, return err; } -static int nf_tables_set_desc_parse(const struct nft_ctx *ctx, - struct nft_set_desc *desc, +static int nf_tables_set_desc_parse(struct nft_set_desc *desc, const struct nlattr *nla) { struct nlattr *da[NFTA_SET_DESC_MAX + 1]; @@ -3561,7 +3560,7 @@ static int nf_tables_newset(struct net *net, struct sock *nlsk, policy = ntohl(nla_get_be32(nla[NFTA_SET_POLICY])); if (nla[NFTA_SET_DESC] != NULL) { - err = nf_tables_set_desc_parse(&ctx, &desc, nla[NFTA_SET_DESC]); + err = nf_tables_set_desc_parse(&desc, nla[NFTA_SET_DESC]); if (err < 0) return err; } -- 2.20.1