summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_compat_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usb_compat_linux.c')
-rw-r--r--sys/dev/usb/usb_compat_linux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/usb_compat_linux.c b/sys/dev/usb/usb_compat_linux.c
index 8e20d20..2f78d9f 100644
--- a/sys/dev/usb/usb_compat_linux.c
+++ b/sys/dev/usb/usb_compat_linux.c
@@ -564,7 +564,7 @@ usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe)
type = uhe->desc.bmAttributes & UE_XFERTYPE;
addr = uhe->desc.bEndpointAddress;
- bzero(cfg, sizeof(cfg));
+ memset(cfg, 0, sizeof(cfg));
cfg[0].type = type;
cfg[0].endpoint = addr & UE_ADDR;
@@ -709,12 +709,12 @@ usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe,
urb->dev = dev;
urb->endpoint = uhe;
- bcopy(&req, urb->setup_packet, sizeof(req));
+ memcpy(urb->setup_packet, &req, sizeof(req));
if (size && (!(req.bmRequestType & UT_READ))) {
/* move the data to a real buffer */
- bcopy(data, USB_ADD_BYTES(urb->setup_packet,
- sizeof(req)), size);
+ memcpy(USB_ADD_BYTES(urb->setup_packet, sizeof(req)),
+ data, size);
}
err = usb_start_wait_urb(urb, timeout, &actlen);
@@ -789,7 +789,7 @@ usb_setup_endpoint(struct usb_device *dev,
if (bufsize == 0) {
return (0);
}
- bzero(cfg, sizeof(cfg));
+ memset(cfg, 0, sizeof(cfg));
if (type == UE_ISOCHRONOUS) {
@@ -1251,7 +1251,7 @@ usb_init_urb(struct urb *urb)
if (urb == NULL) {
return;
}
- bzero(urb, sizeof(*urb));
+ memset(urb, 0, sizeof(*urb));
}
/*------------------------------------------------------------------------*
OpenPOWER on IntegriCloud