Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Neil Horman and committed by
Robert Love
34bac2ef 8b612434

+2 -2
+2 -2
drivers/scsi/fcoe/fcoe.c
··· 1546 1546 wake_up_process(fps->thread); 1547 1547 spin_unlock(&fps->fcoe_rx_list.lock); 1548 1548 1549 - return 0; 1549 + return NET_RX_SUCCESS; 1550 1550 err: 1551 1551 per_cpu_ptr(lport->stats, get_cpu())->ErrorFrames++; 1552 1552 put_cpu(); 1553 1553 err2: 1554 1554 kfree_skb(skb); 1555 - return -1; 1555 + return NET_RX_DROP; 1556 1556 } 1557 1557 1558 1558 /**