> -----Original Message----- > From: Saurabh Sengar <ssengar@xxxxxxxxxxxxxxxxxxx> > Sent: Thursday, March 10, 2022 12:32 PM > To: Saurabh Singh Sengar <ssengar@xxxxxxxxxxxxx>; Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>; > KY Srinivasan <kys@xxxxxxxxxxxxx>; Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>; > wei.liu@xxxxxxxxxx; Dexuan Cui <decui@xxxxxxxxxxxxx>; davem@xxxxxxxxxxxxx; kuba@xxxxxxxxxx; > linux-hyperv@xxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx > 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 <ssengar@xxxxxxxxxxxxxxxxxxx> > --- > 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: Thanks. Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>