summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-11-12 08:16:45 +0000
committerhselasky <hselasky@FreeBSD.org>2011-11-12 08:16:45 +0000
commita3f67b08f33f8f52dd06e9f36da9671affa61bbd (patch)
tree587db003358056e234b1079f0015b7213b7202ec /sys/dev/usb/controller/uhci.c
parent3b996bbc1149552d433105f70b0d45df8873ed70 (diff)
downloadFreeBSD-src-a3f67b08f33f8f52dd06e9f36da9671affa61bbd.zip
FreeBSD-src-a3f67b08f33f8f52dd06e9f36da9671affa61bbd.tar.gz
Style change.
- Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory copies are overlapping. This means using bcopy() is not required. - Fix a compile warning when USB_HAVE_BUSDMA=0 - Add missing semicolon in avr32dci. - Update some comments. MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/controller/uhci.c')
-rw-r--r--sys/dev/usb/controller/uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c
index e6559ec..c365e01 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -2702,7 +2702,7 @@ uhci_roothub_exec(struct usb_device *udev,
break;
case C(UR_GET_STATUS, UT_READ_CLASS_DEVICE):
len = 16;
- bzero(sc->sc_hub_desc.temp, 16);
+ memset(sc->sc_hub_desc.temp, 0, 16);
break;
case C(UR_GET_STATUS, UT_READ_CLASS_OTHER):
if (index == 1)
OpenPOWER on IntegriCloud