Skip to content

Commit

Permalink
staging: ft1000: Correct return error values.
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent 3b3291e commit d778086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info)
{
DEBUG("network driver is closed, return\n");
//usb_kill_urb(pFt1000Dev->rx_urb); //mbelian
return STATUS_SUCCESS;
return -ENODEV;
}

usb_fill_bulk_urb(pFt1000Dev->rx_urb,
Expand All @@ -1321,12 +1321,12 @@ static int ft1000_submit_rx_urb(struct ft1000_info *info)
if((result = usb_submit_urb(pFt1000Dev->rx_urb, GFP_ATOMIC)))
{
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);

return STATUS_SUCCESS;
return 0;
}

//---------------------------------------------------------------------------
Expand Down

0 comments on commit d778086

Please sign in to comment.