Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1404011ybz; Fri, 17 Apr 2020 23:49:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJGp6RvumMQqHghtrn9+mMpQCv6W77+f0uPOy0EmuLPI13AR7HojgqM1zFR1A2/AjG48gog X-Received: by 2002:a17:906:3502:: with SMTP id r2mr6335254eja.67.1587192584177; Fri, 17 Apr 2020 23:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587192584; cv=none; d=google.com; s=arc-20160816; b=lCNMtdUTBdMiOxTpu9GdsyGp/64JXLGJxe4fOVNF2+C4SlvvucsRBv50BJ+JfurqJZ gyQbn5u1pqrCadBy+cSwkLl8B3dted426It8V8o4oiDQdmh6zeJ3LzBDobdMuXrQbLJJ PvdKAec3ug31S+g0wAnn2w9RRyPGAqwNsx5k8oS4U8JQjqAQnfZGQYDnDayS0pISSFZc fL6TILAAHYKPNvYHtVnTZ1z3eYF+rzK12AgeMqYWx9+ishnXmIQnGTjbQt4MzZXsQJ2R ncPXRgAuynpV7N+HOZiNp5o4++S8X56CQqv0HTeE5WjKDvlrIjHjHIXJWkMZHE1t+iB4 9B1g== 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=zFCEOm4m6dsV8FBqkPcs9bdLOj95Vjb8ajlAlXCAj5A=; b=rrdTHYcV36ky34uOcNrDQ3aRAkHRj5/9DovWVq+heXWEgwh3VjKkKyP8io0qLL4W+A WSBsq6XJQn3DDF422EN2eRs1tgcL9x5hza45Mi2ho3NLvdbbrgVbO9Fs2YaTTV2eL+LV ovL5kRXd4zOgcb6wwTK3/w56jlN3Iq8XOn35bpvb5DbUxbcGKGG2p0rTxQzcwrc5VaYY 7N2zg6mQEGPKHwYlTl8T8JSsabkl5bhRkQpMge2ySMlhTnWTfzYjtSx0CwgbS2R8ZrzU 6eV3EfPz/8RtVN265ozSTuye7ta//1nMmFtqTCyFwZ0gY8EPBW7tCDtkVstUXY4maEl/ PUSQ== 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 24si15343708ejv.109.2020.04.17.23.49.21; Fri, 17 Apr 2020 23:49:44 -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 S1726014AbgDRGsW (ORCPT + 99 others); Sat, 18 Apr 2020 02:48:22 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54148 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725969AbgDRGsV (ORCPT ); Sat, 18 Apr 2020 02:48:21 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 05E794ED5D5154712248; Sat, 18 Apr 2020 14:48:20 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 18 Apr 2020 14:48:09 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 03/10] net: hns3: remove an unnecessary case 0 in hclge_fd_convert_tuple() Date: Sat, 18 Apr 2020 14:47:02 +0800 Message-ID: <1587192429-11463-4-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587192429-11463-1-git-send-email-tanhuazhong@huawei.com> References: <1587192429-11463-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 0aa8db1..5f1bea3 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