Remove superfluous length checking of string descriptor
The check for USB_STRING_DESCRIPTOR::bLength was unnecessary because we
have already checked that
bLength == bytesReturned-sizeof(USB_DESCRIPTOR_REQUEST)
and
bytesReturned >= sizeof(USB_DESCRIPTOR_REQUEST) + sizeof(USB_STRING_DESCRIPTOR);
This means that bLength >= sizeof(USB_STRING_DESCRIPTOR), and bString is
at least one 16-bit character.
This also fixes an issue with misplaced parentheses in the now removed
check.
Task-number: QTBUG-128487
Pick-to: 6.8
Change-Id: I5a37b12fc1c5f80c47ab0d5c32b7cacdc90414a6
Reviewed-by: Ken Culver <kwculver@gmail.com>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>