aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2012-04-20 14:29:45 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2012-04-20 14:29:45 +0000
commitd81535d1f9a824d38814cef6af3aa0267741a99f (patch)
tree7bba82ab4db6a05960a26e4d19378f7bd40ea21c /lib/libusb/libusb20.c
parentdd952f80bc74a4803ce96737608cdcde379c2186 (diff)
downloadsrc-d81535d1f9a824d38814cef6af3aa0267741a99f.tar.gz
src-d81535d1f9a824d38814cef6af3aa0267741a99f.zip
Fix some compile warnings.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=234491
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r--lib/libusb/libusb20.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c
index 747c16003ce0..75af7a1865c1 100644
--- a/lib/libusb/libusb20.c
+++ b/lib/libusb/libusb20.c
@@ -948,9 +948,8 @@ libusb20_dev_get_config_index(struct libusb20_device *pdev)
}
error = pdev->methods->get_config_index(pdev, &cfg_index);
- if (error) {
- cfg_index = 0 - 1; /* current config index */
- }
+ if (error)
+ cfg_index = 0xFF; /* current config index */
if (do_close) {
if (libusb20_dev_close(pdev)) {
/* ignore */