Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3160275ybz; Sun, 19 Apr 2020 19:22:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJFffraCnCOjkwpTinaVIjrBNCk0p6p3sTeM943eSAuSWMLdacKmrPpaNlbKOe1fItrEo6i X-Received: by 2002:a50:f699:: with SMTP id d25mr12249898edn.244.1587349373127; Sun, 19 Apr 2020 19:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587349373; cv=none; d=google.com; s=arc-20160816; b=pB6NZNPHBXWnq8dreJZEcJ+/6B1/6Q5F61hNGrkuSQaQQ6TM76IzHFYkY+roSVkgaV jP9DkCAE3YJVHfQyWBz2cieCvDyGRDtbSFW+Y66xoHJqUQMQMcLfdEHHR69jPNKSED/U tY23cOt0sORC662QaEy/m7wXpNmJmhFq0zCKJ/w/2jhFmuWYwGe7eLryym4bWrmF3fX7 KBBhiqEzAFk8q2X7ZuioouqGmoXR4AegEIHyylVlyxrYTh5vlfPoxs90y0Infiu+QkZF pbDt3gQ+5qdAytd00UpE44DtKL3qLT61WWpzLLP6wn2VQGPsdGzOFNgas0uT89hxRl48 ujeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=4ZBR57jRrafEkMYG7Cj3mDmUpEMev336rYuiVFgJcnc=; b=d1I0sr4dK/kKUCCdcC/SIks1SKQu3mZkE4r4F7YBcuorWITzgQ/3z7clKOqVO7IM68 uCIAfhspU83EYe1mhYHHcoDini3qZsQ8O4EPKN3dVVSoGTH08lGAZnPCLubkDuRVC/XN V5PpOl3ZslGoUyFEn+bpnJ7Nhxi+R39WvL9vJWPHUNnhOsuJG+HbNnIf8754Jkbm/ZV8 O6codhK+wGJaUq6LVhRluni28HqgSFeYytkKxEv9DAidWEXMXnSmSOj6mvyy3CNNT0zq 2SW6Od7BnQdhs2124pzZeYusvg7lXks/OW3snLwXbgWnTPz1uqKnTLwVCBeChOEqCxp9 gFVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si18547376eja.269.2020.04.19.19.22.30; Sun, 19 Apr 2020 19:22:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726147AbgDTCSn (ORCPT + 99 others); Sun, 19 Apr 2020 22:18:43 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54762 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726109AbgDTCSm (ORCPT ); Sun, 19 Apr 2020 22:18:42 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1DC7F44FCFC3DD376B63; Mon, 20 Apr 2020 10:18:40 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 10:18:34 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V2 net-next 03/10] net: hns3: remove an unnecessary case 0 in hclge_fd_convert_tuple() Date: Mon, 20 Apr 2020 10:17:28 +0800 Message-ID: <1587349055-4403-4-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587349055-4403-1-git-send-email-tanhuazhong@huawei.com> References: <1587349055-4403-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since case default has included case 0, so removes this redundant case 0. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index b1fe204..999f056 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5006,8 +5006,6 @@ static bool hclge_fd_convert_tuple(u32 tuple_bit, u8 *key_x, u8 *key_y, return true; switch (tuple_bit) { - case 0: - return false; case BIT(INNER_DST_MAC): for (i = 0; i < ETH_ALEN; i++) { calc_x(key_x[ETH_ALEN - 1 - i], rule->tuples.dst_mac[i], -- 2.7.4