Remove check that is always false

len is an unsigned variable, so it will never be less than 0.

This helps towards #1792.
This commit is contained in:
Matthijs Kooijman 2014-02-18 21:02:26 +01:00
parent b196a4a9c5
commit 8e35973ff9
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ uint32_t USBD_Available(uint32_t ep)
// Return number of bytes read
uint32_t USBD_Recv(uint32_t ep, void* d, uint32_t len)
{
if (!_usbConfiguration || len < 0)
if (!_usbConfiguration)
return -1;
LockEP lock(ep);