Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp418938pxp; Fri, 11 Mar 2022 06:56:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSDDJqOTOM27aojIpvStUzejO5xlsJkyrFw4S7uYKRCXX9OTFhJUmkrSLxWWf0ZWL4Qowb X-Received: by 2002:a17:907:d90:b0:6db:a372:e61c with SMTP id go16-20020a1709070d9000b006dba372e61cmr3100666ejc.276.1647010562761; Fri, 11 Mar 2022 06:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647010562; cv=none; d=google.com; s=arc-20160816; b=bnBlYGytFtQjv8Lyax2y1Jku6m5BAQs21PUtiLIrFh3wW/WR69+FBEAmnZQF3JOk7k gJlyWJWKDr+xqnkdDsNZJKeowsYOzA8v1NuvjhL3UUb3IAgJhF0ZKp/FwEgJ2i36DQUh OHs8MjWEp2jsN4lJA1ABN2yS+LS66FaQ/A+eVMDE1aJloCyXCTPWVaNM7liWW4VDURC7 currcG9XMPrx5TzDEPRZ89gwJxr0ziNtiiJWhQI0oAjd3O6eImhsWpeujfbzkWFgVCei Cl2+vfl5RQ7t8xTyiXs4/CPih8rG84q3kHwltp3zuLlCwRXLVJqbDjGS36jhWkjEZGI0 sALQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter; bh=rjWLUtjXMCjyslyq0fVUUUtRbPRDKlGeSrBa50NCzQQ=; b=FI9nOY5EbDdhHcY0LnMr2SB3Ki2Zra5NoNWQmC5IOip55JYebaLpzOPWA+U/yKZZcm 1W63M/jYu1hOAe73PVg9LXGfia0pT/J1sf4/W8RSMnUG5LFptpa6Oxc3wA+0mMGro0s8 U8dR0grHgPb3tO9iJakXStettF1wPe85BoI6K3V2lVKU+vTWMrcJVQrX31Hq2tGcByKM u7tGPqx+tq85lTyIUK3nKAI/g4NwNaZmEg7nU7TRT7vqiurlOb+A/mRySrJn3XWY7fRh 24JSrMPMICXSckUd8suHZEKtduRUO4sVDLJr8K1coMPai1ZNUt4XFUecDJRGUTxxTcrU SPwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=eP6W5vx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a50e0c9000000b004165d0e1fcasi5721472edl.437.2022.03.11.06.55.39; Fri, 11 Mar 2022 06:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=eP6W5vx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245196AbiCJReK (ORCPT + 99 others); Thu, 10 Mar 2022 12:34:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245307AbiCJRdV (ORCPT ); Thu, 10 Mar 2022 12:33:21 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7C32F5402; Thu, 10 Mar 2022 09:32:19 -0800 (PST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 6700120B7178; Thu, 10 Mar 2022 09:32:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6700120B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1646933539; bh=rjWLUtjXMCjyslyq0fVUUUtRbPRDKlGeSrBa50NCzQQ=; h=From:To:Subject:Date:From; b=eP6W5vx30W5GhN1RTeXX3w9pg/i2T2iICF2reDJFTpBbjVcKFVZ3eoqqKHzgqul5u lyWSFSnwFvhbHrFTEyPTOLLwKuDNQtT99irif3OvLWfOTf1nvHCWgATy5hZnH59ZMv yUQUOqMzOxedrSWCyj2SilN98cO5JPkSfD/ZLxpo= From: Saurabh Sengar To: ssengar@microsoft.com, haiyangz@microsoft.com, kys@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, kuba@kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: netvsc: remove break after return Date: Thu, 10 Mar 2022 09:32:14 -0800 Message-Id: <1646933534-29493-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In function netvsc_process_raw_pkt for VM_PKT_DATA_USING_XFER_PAGES case there is already a 'return' statement which results 'break' as dead code Signed-off-by: Saurabh Sengar --- drivers/net/hyperv/netvsc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index e675d10..9442f75 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -1630,7 +1630,6 @@ static int netvsc_process_raw_pkt(struct hv_device *device, case VM_PKT_DATA_USING_XFER_PAGES: return netvsc_receive(ndev, net_device, nvchan, desc); - break; case VM_PKT_DATA_INBAND: netvsc_receive_inband(ndev, net_device, desc); -- 1.8.3.1