From patchwork Thu Mar 10 17:32:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurabh Sengar X-Patchwork-Id: 12776811 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 BCA4DC433EF for ; Thu, 10 Mar 2022 17:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245048AbiCJReJ (ORCPT ); Thu, 10 Mar 2022 12:34:09 -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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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 Reviewed-by: Haiyang Zhang --- 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);