diff --git a/src/kits/device/USBInterface.cpp b/src/kits/device/USBInterface.cpp index f9497c655f..4d32cf3904 100644 --- a/src/kits/device/USBInterface.cpp +++ b/src/kits/device/USBInterface.cpp @@ -127,7 +127,7 @@ status_t BUSBInterface::OtherDescriptorAt(uint32 index, usb_descriptor *descriptor, size_t length) const { - if (length <= 0 && descriptor == NULL) + if (length <= 0 || descriptor == NULL) return B_BAD_VALUE; usb_raw_command command;