2022-03-11 14:56:03

by Saurabh Singh Sengar

[permalink] [raw]
Subject: [PATCH] net: netvsc: remove break after return

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 <[email protected]>
---
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


2022-03-12 13:33:18

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH] net: netvsc: remove break after return

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <[email protected]>:

On Thu, 10 Mar 2022 09:32:14 -0800 you wrote:
> 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 <[email protected]>
> ---
> drivers/net/hyperv/netvsc.c | 1 -
> 1 file changed, 1 deletion(-)

Here is the summary with links:
- net: netvsc: remove break after return
https://git.kernel.org/netdev/net-next/c/8cf5ab362dce

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html