Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228022
b: refs/heads/master
c: 35e9403
h: refs/heads/master
v: v3
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Nov 10, 2010
1 parent fa2468b commit aff5eec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2b07455b85d20c72e4182fe7d53d8c70838f984
refs/heads/master: 35e9403b052ff6cad71bc5d9a075385e0c62ab96
27 changes: 10 additions & 17 deletions trunk/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)
{

DEBUG("ft1000_copy_down_pkt::Card Not Ready\n");
return STATUS_FAILURE;
return -ENODEV;

}

Expand All @@ -1037,7 +1037,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)
{
DEBUG("Error:ft1000_copy_down_pkt:Message Size Overflow!\n");
DEBUG("size = %d\n", count);
return STATUS_FAILURE;
return -EINVAL;
}

if ( count % 4)
Expand Down Expand Up @@ -1080,25 +1080,18 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)
}*/


ret = usb_submit_urb(pFt1000Dev->tx_urb, GFP_ATOMIC);
if(ret)
{
ret = usb_submit_urb(pFt1000Dev->tx_urb, GFP_ATOMIC);
if (ret) {
DEBUG("ft1000 failed tx_urb %d\n", ret);

return STATUS_FAILURE;

}
else
{
//DEBUG("ft1000 sucess tx_urb %d\n", ret);

pInfo->stats.tx_packets++;
pInfo->stats.tx_bytes += (len+14);
}
return ret;
} else {
pInfo->stats.tx_packets++;
pInfo->stats.tx_bytes += (len+14);
}

//DEBUG("ft1000_copy_down_pkt() exit\n");

return STATUS_SUCCESS;
return 0;
}

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

0 comments on commit aff5eec

Please sign in to comment.