git: b258282ecce3 - main - kshim/usb: Prefer memset to bzero

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 09 Jan 2026 04:43:24 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b258282ecce3e2ad7ece6bec4f1507f70b85de87

commit b258282ecce3e2ad7ece6bec4f1507f70b85de87
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-01-02 19:55:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-01-09 04:42:34 +0000

    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
---
 sys/dev/usb/usb_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;