Use correct enum instead of constant value.

MFC after:	1 week
Spotted by:	scf @
Approved by:	re (kib)
This commit is contained in:
Hans Petter Selasky 2011-08-20 14:04:16 +00:00
parent 0c4dbd5af7
commit 33ec9f0cb0

View File

@ -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: