aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2013-08-03 06:45:55 -0400
committerRobert Love <robert.w.love@intel.com>2013-09-04 15:40:43 -0400
commit34bac2ef5981666261fcf6932f4cd718b820323f (patch)
treec13ed8fe17e3ae3d712f60076be2a93db8aa4d3a /drivers/scsi/fcoe
parent8b6124345207e4c2141bed78f1bf7c4f526a6d19 (diff)
fcoe: cleanup return codes from fcoe_rcv
the return codes from fcoe_rcv should be NET_RX_*, not 0 or -1. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Robert Love <robert.w.love@intel.com>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index f9b0302f9ba2..134ca3b471bf 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -1546,13 +1546,13 @@ static int fcoe_rcv(struct sk_buff *skb, struct net_device *netdev,
1546 wake_up_process(fps->thread); 1546 wake_up_process(fps->thread);
1547 spin_unlock(&fps->fcoe_rx_list.lock); 1547 spin_unlock(&fps->fcoe_rx_list.lock);
1548 1548
1549 return 0; 1549 return NET_RX_SUCCESS;
1550err: 1550err:
1551 per_cpu_ptr(lport->stats, get_cpu())->ErrorFrames++; 1551 per_cpu_ptr(lport->stats, get_cpu())->ErrorFrames++;
1552 put_cpu(); 1552 put_cpu();
1553err2: 1553err2:
1554 kfree_skb(skb); 1554 kfree_skb(skb);
1555 return -1; 1555 return NET_RX_DROP;
1556} 1556}
1557 1557
1558/** 1558/**