1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

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

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);