diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-10-28 16:08:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-10-28 16:08:11 +0000 |
commit | ddb661211a0fcb7462c46ed9840afb1461785e2e (patch) | |
tree | 08001b0f02688974c2b832407436aec35009c664 /sys/dev/usb | |
parent | cf7de6f4abce6ce2cda85d6d5ec2ae3f851f1d8f (diff) |
cleanup ;;
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usbf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usbf.c b/sys/dev/usb/usbf.c index dbd53353d8b..cac626e19e2 100644 --- a/sys/dev/usb/usbf.c +++ b/sys/dev/usb/usbf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbf.c,v 1.11 2008/06/10 20:50:19 miod Exp $ */ +/* $OpenBSD: usbf.c,v 1.12 2010/10/28 16:07:53 deraadt Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -302,7 +302,7 @@ usbf_get_descriptor(usbf_device_handle dev, usb_device_request_t *req, case UDESC_DEVICE: dd = usbf_device_descriptor(dev); *data = dd; - USETW(req->wLength, MIN(UGETW(req->wLength), dd->bLength));; + USETW(req->wLength, MIN(UGETW(req->wLength), dd->bLength)); return USBF_NORMAL_COMPLETION; case UDESC_DEVICE_QUALIFIER: { @@ -319,7 +319,7 @@ usbf_get_descriptor(usbf_device_handle dev, usb_device_request_t *req, dq.bMaxPacketSize0 = dd->bMaxPacketSize; dq.bNumConfigurations = dd->bNumConfigurations; *data = &dq; - USETW(req->wLength, MIN(UGETW(req->wLength), dq.bLength));; + USETW(req->wLength, MIN(UGETW(req->wLength), dq.bLength)); return USBF_NORMAL_COMPLETION; } @@ -474,7 +474,7 @@ usbf_do_request(usbf_xfer_handle xfer, usbf_private_handle priv, data = &zero; } else data = &cfg->uc_cdesc->bConfigurationValue; - USETW(req->wLength, MIN(UGETW(req->wLength), 1));; + USETW(req->wLength, MIN(UGETW(req->wLength), 1)); } break; |