summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-06-27 14:29:44 +0000
committerkrw <krw@openbsd.org>2020-06-27 14:29:44 +0000
commita7997e14b2c5583c85c5c712c73af0f27d80f68b (patch)
treeed05f355cdd5a7f707ed31d2f1bc6178cdca08bc /sys/dev/usb
parentAdd missing label. (diff)
downloadwireguard-openbsd-a7997e14b2c5583c85c5c712c73af0f27d80f68b.tar.xz
wireguard-openbsd-a7997e14b2c5583c85c5c712c73af0f27d80f68b.zip
No need to bzero()/memset() 'struct scsibus_attach_args' variables
immediately before initializing the only field in the struct.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/umass_scsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/umass_scsi.c b/sys/dev/usb/umass_scsi.c
index 9deb1f6f3b6..2225c3eb747 100644
--- a/sys/dev/usb/umass_scsi.c
+++ b/sys/dev/usb/umass_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass_scsi.c,v 1.50 2020/02/13 15:11:32 krw Exp $ */
+/* $OpenBSD: umass_scsi.c,v 1.51 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -101,7 +101,6 @@ umass_scsi_attach(struct umass_softc *sc)
scbus->sc_link.luns = sc->maxlun + 1;
scbus->sc_link.flags = SDEV_UMASS;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &scbus->sc_link;
switch (sc->sc_cmd) {