Use correct enum instead of constant value.
MFC after: 1 week Spotted by: scf @ Approved by: re (kib)
This commit is contained in:
parent
0c4dbd5af7
commit
33ec9f0cb0
@ -276,7 +276,7 @@ enum libusb_speed
|
||||
libusb_get_device_speed(libusb_device *dev)
|
||||
{
|
||||
if (dev == NULL)
|
||||
return (0); /* should not happen */
|
||||
return (LIBUSB_SPEED_UNKNOWN); /* should not happen */
|
||||
|
||||
switch (libusb20_dev_get_speed(dev->os_priv)) {
|
||||
case LIBUSB20_SPEED_LOW:
|
||||
|
Loading…
Reference in New Issue
Block a user