aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2026-01-02 19:55:28 +0000
committerWarner Losh <imp@FreeBSD.org>2026-01-09 04:42:34 +0000
commitb258282ecce3e2ad7ece6bec4f1507f70b85de87 (patch)
tree5764d03ef8d798e4756e9600464acf9c6cd811a3
parenta6d57f312f18bbeeda8a34e99d0a662b0db9a190 (diff)
kshim/usb: Prefer memset to bzero
Replace bzero with the equivalent memset(x,0,x) since the latter is available in the kshim environment and we have a soft goal of migrating to standard interfaces when there's a reason... Sponsored by: Netflix
-rw-r--r--sys/dev/usb/usb_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c
index f0989972f49f..4e0268110787 100644
--- a/sys/dev/usb/usb_device.c
+++ b/sys/dev/usb/usb_device.c
@@ -3127,7 +3127,7 @@ usbd_fill_deviceinfo(struct usb_device *udev, struct usb_device_info *di)
{
struct usb_device *hub;
- bzero(di, sizeof(di[0]));
+ memset(di, 0, sizeof(di[0]));
di->udi_bus = device_get_unit(udev->bus->bdev);
di->udi_addr = udev->address;