Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1156350ybh; Sat, 14 Mar 2020 19:36:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv16q4FyPiuEmhAhOUyy+SUKprUKFz8t0WPgGKKt1RIcshW7i+oKoMpQuapj5EIz7hyb8M/ X-Received: by 2002:a9d:5e8a:: with SMTP id f10mr17861739otl.143.1584239766467; Sat, 14 Mar 2020 19:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584239766; cv=none; d=google.com; s=arc-20160816; b=jzVsA0V9JdnqalZK05s+//fUffR1bX1OzwJIa147BFmnSHlKx2TXgxEhBXnqZPEIYu 7WYM51SQ1IUh1z9W4/zVWVe8vp5sOlaHIveiEenVaRKrLwiEfTZVCLhJSfAiODOccovW PDn+CfXp5Ig4XGk4DKQ5ef41RQ5s/fsgxt9+E6R9OChV3U1UYH1zmCzqhZm29bz3uuP2 VioZ7mdKamT/OHZmQHffqbA0onIEij2jGhnsPPrucjUxPEvj/p0mhrQdwjvT2kX/A1jP 9xNWWUeLpsjlMqqcccuZVJOjNTA441C5JCwMXSuBUQWl6OyqAZxDv+D9/qQtN0itgGsZ hljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=nO5UX65Cu8MD8vxyufU1Aw+pLVPThcIQH92RGKMbgRw=; b=byzYU3yR6ijdKvIFH3zPPwU8j7GZcgEeMqo9lj7+Plt9Gj1YILr1bOrt8Jl8KWsKhe U3Du7c7n52USKn+mSsdfVIkZPnNbRkWZcXxP0giSLDgcaREaHf/iaqZ7WW3hRSt7ht3H 6FemouL1MptvfQPnt/FRBIODstZ1P7SKEcL4m+KZVnKOy/Bu4MzbdC2EWeC6jbDHlle0 BnqnIMrU776IJ7MT2OMzLU7o40MR51TNIDmQtlb32HD/mVzv/t4x9iWnZI8MPzO5ox0G wlZjkYeBs6dbH5t7c0KI3bZp9Gj1/ayVBU2gUNHsz5U7OkYlxQLfgfGSj2zkmjBgKIJu zY6w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si5225063oie.164.2020.03.14.19.35.54; Sat, 14 Mar 2020 19:36:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbgCOCel (ORCPT + 99 others); Sat, 14 Mar 2020 22:34:41 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59700 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726667AbgCOCek (ORCPT ); Sat, 14 Mar 2020 22:34:40 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CD76F611D5F8A1C35A9B; Sat, 14 Mar 2020 18:47:55 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Mar 2020 18:47:47 +0800 From: YueHaibing To: , , , , , , CC: , , , YueHaibing Subject: [PATCH net-next] net/mlx5e: CT: remove set but not used variable 'unnew' Date: Sat, 14 Mar 2020 18:44:46 +0800 Message-ID: <20200314104446.54364-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c: In function mlx5_tc_ct_parse_match: drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c:699:36: warning: variable unnew set but not used [-Wunused-but-set-variable] commit 4c3844d9e97e ("net/mlx5e: CT: Introduce connection tracking") involed this unused variable, remove it. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c index 956d9ddcdeed..9fe150957d65 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c @@ -696,7 +696,7 @@ mlx5_tc_ct_parse_match(struct mlx5e_priv *priv, { struct mlx5_tc_ct_priv *ct_priv = mlx5_tc_ct_get_ct_priv(priv); struct flow_dissector_key_ct *mask, *key; - bool trk, est, untrk, unest, new, unnew; + bool trk, est, untrk, unest, new; u32 ctstate = 0, ctstate_mask = 0; u16 ct_state_on, ct_state_off; u16 ct_state, ct_state_mask; @@ -739,7 +739,6 @@ mlx5_tc_ct_parse_match(struct mlx5e_priv *priv, new = ct_state_on & TCA_FLOWER_KEY_CT_FLAGS_NEW; est = ct_state_on & TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED; untrk = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_TRACKED; - unnew = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_NEW; unest = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED; ctstate |= trk ? MLX5_CT_STATE_TRK_BIT : 0; -- 2.20.1