From patchwork Mon May 9 13:14:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tang Bin X-Patchwork-Id: 12843546 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7888AC433EF for ; Mon, 9 May 2022 13:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235453AbiEINVH (ORCPT ); Mon, 9 May 2022 09:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235411AbiEINUu (ORCPT ); Mon, 9 May 2022 09:20:50 -0400 X-Greylist: delayed 183 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 09 May 2022 06:16:52 PDT Received: from cmccmta1.chinamobile.com (cmccmta1.chinamobile.com [221.176.66.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F31BE21607E; Mon, 9 May 2022 06:16:52 -0700 (PDT) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[172.16.121.7]) by rmmx-syy-dmz-app02-12002 (RichMail) with SMTP id 2ee262791389588-0e0d4; Mon, 09 May 2022 21:13:46 +0800 (CST) X-RM-TRANSID: 2ee262791389588-0e0d4 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.0.145.115]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee462791387782-51810; Mon, 09 May 2022 21:13:46 +0800 (CST) X-RM-TRANSID: 2ee462791387782-51810 From: Tang Bin To: mst@redhat.com, jasowang@redhat.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] virtio_net: Remove unused case in virtio_skb_set_hash() Date: Mon, 9 May 2022 21:14:32 +0800 Message-Id: <20220509131432.16568-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org In this function, "VIRTIO_NET_HASH_REPORT_NONE" is included in "default", so it canbe removed. Signed-off-by: Tang Bin --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 87838cbe3..b3e5d8637 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1172,7 +1172,6 @@ static void virtio_skb_set_hash(const struct virtio_net_hdr_v1_hash *hdr_hash, case VIRTIO_NET_HASH_REPORT_IPv6_EX: rss_hash_type = PKT_HASH_TYPE_L3; break; - case VIRTIO_NET_HASH_REPORT_NONE: default: rss_hash_type = PKT_HASH_TYPE_NONE; }