From 33ec9f0cb0e2928c586d481a5bba64860b111ce1 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Sat, 20 Aug 2011 14:04:16 +0000 Subject: [PATCH] Use correct enum instead of constant value. MFC after: 1 week Spotted by: scf @ Approved by: re (kib) --- lib/libusb/libusb10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index d11f631d2380..b66ccb6eec51 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -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: