Commit d7780865 authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman

staging: ft1000: Correct return error values.

Signed-off-by: default avatarMarek Belisko <marek.belisko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3b3291e8
...@@ -1306,7 +1306,7 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info) ...@@ -1306,7 +1306,7 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info)
{ {
DEBUG("network driver is closed, return\n"); DEBUG("network driver is closed, return\n");
//usb_kill_urb(pFt1000Dev->rx_urb); //mbelian //usb_kill_urb(pFt1000Dev->rx_urb); //mbelian
return STATUS_SUCCESS; return -ENODEV;
} }
usb_fill_bulk_urb(pFt1000Dev->rx_urb, usb_fill_bulk_urb(pFt1000Dev->rx_urb,
...@@ -1321,12 +1321,12 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info) ...@@ -1321,12 +1321,12 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info)
if((result = usb_submit_urb(pFt1000Dev->rx_urb, GFP_ATOMIC))) if((result = usb_submit_urb(pFt1000Dev->rx_urb, GFP_ATOMIC)))
{ {
printk("ft1000_submit_rx_urb: submitting rx_urb %d failed\n", result); printk("ft1000_submit_rx_urb: submitting rx_urb %d failed\n", result);
return STATUS_FAILURE; return result;
} }
//DEBUG("ft1000_submit_rx_urb exit: result=%d\n", result); //DEBUG("ft1000_submit_rx_urb exit: result=%d\n", result);
return STATUS_SUCCESS; return 0;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment