summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/luna88k/dev/mb89352.c3
-rw-r--r--sys/arch/sparc64/dev/vdsk.c3
-rw-r--r--sys/dev/ata/atascsi.c3
-rw-r--r--sys/dev/atapiscsi/atapiscsi.c3
-rw-r--r--sys/dev/ic/aac.c3
-rw-r--r--sys/dev/ic/adv.c3
-rw-r--r--sys/dev/ic/adw.c3
-rw-r--r--sys/dev/ic/aic6250.c3
-rw-r--r--sys/dev/ic/aic6360.c3
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c3
-rw-r--r--sys/dev/ic/aic7xxx_openbsd.c3
-rw-r--r--sys/dev/ic/ami.c4
-rw-r--r--sys/dev/ic/cac.c3
-rw-r--r--sys/dev/ic/ciss.c3
-rw-r--r--sys/dev/ic/gdt_common.c3
-rw-r--r--sys/dev/ic/mfi.c4
-rw-r--r--sys/dev/ic/mpi.c3
-rw-r--r--sys/dev/ic/ncr53c9x.c3
-rw-r--r--sys/dev/ic/nvme.c3
-rw-r--r--sys/dev/ic/oosiop.c3
-rw-r--r--sys/dev/ic/osiop.c3
-rw-r--r--sys/dev/ic/qla.c3
-rw-r--r--sys/dev/ic/qlw.c3
-rw-r--r--sys/dev/ic/siop.c3
-rw-r--r--sys/dev/ic/twe.c3
-rw-r--r--sys/dev/ic/uha.c3
-rw-r--r--sys/dev/ic/wd33c93.c3
-rw-r--r--sys/dev/isa/wds.c3
-rw-r--r--sys/dev/pci/arc.c3
-rw-r--r--sys/dev/pci/iha_pci.c3
-rw-r--r--sys/dev/pci/ips.c4
-rw-r--r--sys/dev/pci/mfii.c4
-rw-r--r--sys/dev/pci/mpii.c3
-rw-r--r--sys/dev/pci/qle.c3
-rw-r--r--sys/dev/pci/trm_pci.c3
-rw-r--r--sys/dev/pci/vmwpvs.c3
-rw-r--r--sys/dev/pv/hvs.c1
-rw-r--r--sys/dev/pv/vioblk.c3
-rw-r--r--sys/dev/pv/vioscsi.c3
-rw-r--r--sys/dev/pv/xbf.c3
-rw-r--r--sys/dev/softraid.c3
-rw-r--r--sys/dev/usb/umass_scsi.c3
-rw-r--r--sys/dev/vscsi.c3
-rw-r--r--sys/scsi/mpath.c3
44 files changed, 43 insertions, 91 deletions
diff --git a/sys/arch/luna88k/dev/mb89352.c b/sys/arch/luna88k/dev/mb89352.c
index 6c5cfb91f75..d77652ffeca 100644
--- a/sys/arch/luna88k/dev/mb89352.c
+++ b/sys/arch/luna88k/dev/mb89352.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mb89352.c,v 1.23 2017/11/03 06:54:06 aoyama Exp $ */
+/* $OpenBSD: mb89352.c,v 1.24 2020/06/27 14:29:44 krw Exp $ */
/* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
@@ -223,7 +223,6 @@ spc_attach(struct spc_softc *sc, struct scsi_adapter *adapter)
sc->sc_link.openings = 2;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c
index 6140fdeb3a3..169bd83998a 100644
--- a/sys/arch/sparc64/dev/vdsk.c
+++ b/sys/arch/sparc64/dev/vdsk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsk.c,v 1.55 2020/06/24 18:47:56 krw Exp $ */
+/* $OpenBSD: vdsk.c,v 1.56 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
@@ -354,7 +354,6 @@ vdsk_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = sc->sc_vd->vd_nentries - 1;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(self, &saa, scsiprint);
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index c4d83f0a1c0..b1e60662199 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.134 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: atascsi.c,v 1.135 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -190,7 +190,6 @@ atascsi_attach(struct device *self, struct atascsi_attach_args *aaa)
as->as_host_ports = mallocarray(aaa->aaa_nports,
sizeof(struct atascsi_host_port *), M_DEVBUF, M_WAITOK | M_ZERO);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &as->as_link;
/* stash the scsibus so we can do hotplug on it */
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c
index c17a90790b9..fc61b2ab933 100644
--- a/sys/dev/atapiscsi/atapiscsi.c
+++ b/sys/dev/atapiscsi/atapiscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atapiscsi.c,v 1.110 2020/06/24 19:35:11 krw Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.111 2020/06/27 14:29:44 krw Exp $ */
/*
* This code is derived from code with the copyright below.
@@ -259,7 +259,6 @@ atapiscsi_attach(struct device *parent, struct device *self, void *aux)
WDCDEBUG_PRINT(("driver caps %04x\n", drvp->atapi_cap),
DEBUG_PROBE);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &as->sc_adapterlink;
child = config_found((struct device *)as, &saa, scsiprint);
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c
index 08dcd1e16c4..3347b146c8a 100644
--- a/sys/dev/ic/aac.c
+++ b/sys/dev/ic/aac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aac.c,v 1.78 2020/06/24 22:03:41 cheloha Exp $ */
+/* $OpenBSD: aac.c,v 1.79 2020/06/27 14:29:44 krw Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -275,7 +275,6 @@ aac_attach(struct aac_softc *sc)
sc->aac_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->aac_link.pool = &sc->aac_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->aac_link;
config_found(&sc->aac_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/adv.c b/sys/dev/ic/adv.c
index 20ecfac4274..225e7b1224f 100644
--- a/sys/dev/ic/adv.c
+++ b/sys/dev/ic/adv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adv.c,v 1.42 2020/02/15 18:02:00 krw Exp $ */
+/* $OpenBSD: adv.c,v 1.43 2020/06/27 14:29:44 krw Exp $ */
/* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */
/*
@@ -509,7 +509,6 @@ adv_attach(sc)
sc->sc_dev.dv_xname, i, ADV_MAX_CCB);
}
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
}
diff --git a/sys/dev/ic/adw.c b/sys/dev/ic/adw.c
index 29e65855b04..51866fd9c6a 100644
--- a/sys/dev/ic/adw.c
+++ b/sys/dev/ic/adw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adw.c,v 1.61 2020/03/10 22:31:36 krw Exp $ */
+/* $OpenBSD: adw.c,v 1.62 2020/06/27 14:29:44 krw Exp $ */
/* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */
/*
@@ -512,7 +512,6 @@ adw_attach(ADW_SOFTC *sc)
sc->sc_link.adapter_buswidth = ADW_MAX_TID+1;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/aic6250.c b/sys/dev/ic/aic6250.c
index 5853b47714c..23defd29534 100644
--- a/sys/dev/ic/aic6250.c
+++ b/sys/dev/ic/aic6250.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic6250.c,v 1.7 2020/02/05 16:29:29 krw Exp $ */
+/* $OpenBSD: aic6250.c,v 1.8 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2010, 2013 Miodrag Vallat.
@@ -211,7 +211,6 @@ aic6250_attach(struct aic6250_softc *sc)
sc->sc_link.openings = 2;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/aic6360.c b/sys/dev/ic/aic6360.c
index b04ba119cc4..fdaac14765f 100644
--- a/sys/dev/ic/aic6360.c
+++ b/sys/dev/ic/aic6360.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic6360.c,v 1.31 2020/02/05 16:29:29 krw Exp $ */
+/* $OpenBSD: aic6360.c,v 1.32 2020/06/27 14:29:44 krw Exp $ */
/* $NetBSD: aic6360.c,v 1.52 1996/12/10 21:27:51 thorpej Exp $ */
#ifdef DDB
@@ -272,7 +272,6 @@ aicattach(struct aic_softc *sc)
sc->sc_link.openings = 2;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index 95be685f6f8..466bf17ce62 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.50 2020/02/15 18:02:00 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.51 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -120,7 +120,6 @@ ahd_attach(struct ahd_softc *ahd)
if (ahd->flags & AHD_RESET_BUS_A)
ahd_reset_channel(ahd, 'A', TRUE);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &ahd->sc_channel;
ahd->sc_child = config_found((void *)&ahd->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/aic7xxx_openbsd.c b/sys/dev/ic/aic7xxx_openbsd.c
index 861464b54bc..4cb920f0d0e 100644
--- a/sys/dev/ic/aic7xxx_openbsd.c
+++ b/sys/dev/ic/aic7xxx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxx_openbsd.c,v 1.60 2020/02/15 18:02:00 krw Exp $ */
+/* $OpenBSD: aic7xxx_openbsd.c,v 1.61 2020/06/27 14:29:44 krw Exp $ */
/* $NetBSD: aic7xxx_osm.c,v 1.14 2003/11/02 11:07:44 wiz Exp $ */
/*
@@ -107,7 +107,6 @@ ahc_attach(struct ahc_softc *ahc)
if ((ahc->features & AHC_TWIN) && ahc->flags & AHC_RESET_BUS_B)
ahc_reset_channel(ahc, 'B', TRUE);
- bzero(&saa, sizeof(saa));
if ((ahc->flags & AHC_PRIMARY_CHANNEL) == 0) {
saa.saa_sc_link = &ahc->sc_channel;
ahc->sc_child = config_found((void *)&ahc->sc_dev,
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 4430e2afbf7..05950073dc7 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.242 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: ami.c,v 1.243 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -544,7 +544,6 @@ ami_attach(struct ami_softc *sc)
/* lock around ioctl requests */
rw_init(&sc->sc_lock, NULL);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
@@ -590,7 +589,6 @@ ami_attach(struct ami_softc *sc)
rsc->sc_link.adapter_buswidth = 16;
rsc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &rsc->sc_link;
ptbus = (struct scsibus_softc *)config_found(&sc->sc_dev,
diff --git a/sys/dev/ic/cac.c b/sys/dev/ic/cac.c
index 0fd85c90076..e5b0e03b114 100644
--- a/sys/dev/ic/cac.c
+++ b/sys/dev/ic/cac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cac.c,v 1.60 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: cac.c,v 1.61 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: cac.c,v 1.15 2000/11/08 19:20:35 ad Exp $ */
/*
@@ -245,7 +245,6 @@ cac_init(struct cac_softc *sc, int startfw)
sc->sc_link.openings = 4;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dv, &saa, scsiprint);
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index 529f8bd6dba..8c092d3bf02 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss.c,v 1.82 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: ciss.c,v 1.83 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2005,2006 Michael Shalayeff
@@ -360,7 +360,6 @@ ciss_attach(struct ciss_softc *sc)
sc->sc_link.adapter_target = SDEV_NO_ADAPTER_TARGET;
sc->sc_link.adapter_buswidth = sc->maxunits;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
scsibus = (struct scsibus_softc *)config_found_sm(&sc->sc_dev,
&saa, scsiprint, NULL);
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c
index 95ea7744d44..5cbd52d4a9a 100644
--- a/sys/dev/ic/gdt_common.c
+++ b/sys/dev/ic/gdt_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt_common.c,v 1.69 2020/06/24 18:47:57 krw Exp $ */
+/* $OpenBSD: gdt_common.c,v 1.70 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved.
@@ -476,7 +476,6 @@ gdt_attach(struct gdt_softc *sc)
#endif
gdt_cnt++;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index b9df7ba1f75..dc7c17e9c7d 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.177 2020/06/24 18:33:50 krw Exp $ */
+/* $OpenBSD: mfi.c,v 1.178 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -779,7 +779,6 @@ mfi_attach(struct mfi_softc *sc, enum mfi_iop iop)
sc->sc_link.openings = sc->sc_max_cmds - 1;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)
@@ -855,7 +854,6 @@ mfi_syspd(struct mfi_softc *sc)
link->openings = sc->sc_max_cmds - 1;
link->pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = link;
sc->sc_pd->pd_scsibus = (struct scsibus_softc *)
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index d7322b92563..869f56a625e 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.213 2020/04/21 19:27:03 krw Exp $ */
+/* $OpenBSD: mpi.c,v 1.214 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -363,7 +363,6 @@ mpi_attach(struct mpi_softc *sc)
sc->sc_link.openings = MAX(sc->sc_maxcmds / sc->sc_buswidth, 16);
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/* config_found() returns the scsibus attached to us */
diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c
index b15c3b1f9e7..87e7c7e64d0 100644
--- a/sys/dev/ic/ncr53c9x.c
+++ b/sys/dev/ic/ncr53c9x.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr53c9x.c,v 1.70 2020/06/24 22:03:41 cheloha Exp $ */
+/* $OpenBSD: ncr53c9x.c,v 1.71 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: ncr53c9x.c,v 1.56 2000/11/30 14:41:46 thorpej Exp $ */
/*
@@ -271,7 +271,6 @@ ncr53c9x_attach(sc)
sc->sc_link.adapter_buswidth = sc->sc_ntarg;
sc->sc_link.pool = &ecb_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 818ea7d5aac..43784dabc3f 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.75 2020/03/15 20:50:46 krw Exp $ */
+/* $OpenBSD: nvme.c,v 1.76 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -371,7 +371,6 @@ nvme_attach(struct nvme_softc *sc)
sc->sc_link.openings = 64;
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
diff --git a/sys/dev/ic/oosiop.c b/sys/dev/ic/oosiop.c
index defa747b5b6..1b07deb1e93 100644
--- a/sys/dev/ic/oosiop.c
+++ b/sys/dev/ic/oosiop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: oosiop.c,v 1.26 2020/02/17 02:50:23 krw Exp $ */
+/* $OpenBSD: oosiop.c,v 1.27 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: oosiop.c,v 1.4 2003/10/29 17:45:55 tsutsui Exp $ */
/*
@@ -267,7 +267,6 @@ oosiop_attach(struct oosiop_softc *sc)
sc->sc_link.pool = &sc->sc_iopool;
sc->sc_link.quirks = ADEV_NODOORLOCK;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c
index 835686fa349..8d87771de47 100644
--- a/sys/dev/ic/osiop.c
+++ b/sys/dev/ic/osiop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osiop.c,v 1.56 2020/02/17 02:50:23 krw Exp $ */
+/* $OpenBSD: osiop.c,v 1.57 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */
/*
@@ -334,7 +334,6 @@ osiop_attach(sc)
sc->sc_link.adapter_target = sc->sc_id;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c
index e33265db3af..e46187f405d 100644
--- a/sys/dev/ic/qla.c
+++ b/sys/dev/ic/qla.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qla.c,v 1.62 2020/06/27 13:36:52 bket Exp $ */
+/* $OpenBSD: qla.c,v 1.63 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -694,7 +694,6 @@ qla_attach(struct qla_softc *sc)
sc->sc_link.node_wwn &= ~(0xfULL << 56);
}
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/* config_found() returns the scsibus attached to us */
diff --git a/sys/dev/ic/qlw.c b/sys/dev/ic/qlw.c
index 8ba910ff959..ca80e725c5c 100644
--- a/sys/dev/ic/qlw.c
+++ b/sys/dev/ic/qlw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw.c,v 1.35 2020/06/24 01:35:29 krw Exp $ */
+/* $OpenBSD: qlw.c,v 1.36 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -403,7 +403,6 @@ qlw_attach(struct qlw_softc *sc)
sc->sc_link[bus].openings = sc->sc_max_queue_depth[bus];
sc->sc_link[bus].pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link[bus];
/* config_found() returns the scsibus attached to us */
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index 20cd21faa21..032ad2095e9 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.75 2020/06/19 14:51:44 krw Exp $ */
+/* $OpenBSD: siop.c,v 1.76 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
/*
@@ -213,7 +213,6 @@ siop_attach(sc)
siop_dump_script(sc);
#endif
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_c.sc_link;
config_found((struct device*)sc, &saa, scsiprint);
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index ad17f0b33d3..a327dec2cd7 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.52 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: twe.c,v 1.53 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2000-2002 Michael Shalayeff. All rights reserved.
@@ -401,7 +401,6 @@ twe_attach(sc)
sc->sc_link.adapter_buswidth = TWE_MAX_UNITS;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/ic/uha.c b/sys/dev/ic/uha.c
index 315adeffe88..7ef900e8e4d 100644
--- a/sys/dev/ic/uha.c
+++ b/sys/dev/ic/uha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uha.c,v 1.30 2020/02/15 18:02:00 krw Exp $ */
+/* $OpenBSD: uha.c,v 1.31 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */
#undef UHADEBUG
@@ -129,7 +129,6 @@ uha_attach(sc)
sc->sc_link.openings = 2;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/dev/ic/wd33c93.c b/sys/dev/ic/wd33c93.c
index 32d521d52ff..1a4237ed7b9 100644
--- a/sys/dev/ic/wd33c93.c
+++ b/sys/dev/ic/wd33c93.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd33c93.c,v 1.13 2020/06/24 22:03:41 cheloha Exp $ */
+/* $OpenBSD: wd33c93.c,v 1.14 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: wd33c93.c,v 1.24 2010/11/13 13:52:02 uebayasi Exp $ */
/*
@@ -210,7 +210,6 @@ wd33c93_attach(struct wd33c93_softc *sc, struct scsi_adapter *adapter)
sc->sc_link.luns = SBIC_NLUN;
sc->sc_link.pool = &wd33c93_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c
index 9c320b3b457..d43972bdba8 100644
--- a/sys/dev/isa/wds.c
+++ b/sys/dev/isa/wds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wds.c,v 1.48 2020/02/16 17:39:47 krw Exp $ */
+/* $OpenBSD: wds.c,v 1.49 2020/06/27 14:29:45 krw Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
@@ -296,7 +296,6 @@ wdsattach(struct device *parent, struct device *self, void *aux)
sc->sc_ih = isa_intr_establish(ia->ia_ic, sc->sc_irq, IST_EDGE,
IPL_BIO, wdsintr, sc, sc->sc_dev.dv_xname);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/*
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c
index 6f8ec1bf70e..d4ee993e41d 100644
--- a/sys/dev/pci/arc.c
+++ b/sys/dev/pci/arc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc.c,v 1.111 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: arc.c,v 1.112 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -809,7 +809,6 @@ arc_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = sc->sc_req_count;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
child = config_found(self, &saa, scsiprint);
diff --git a/sys/dev/pci/iha_pci.c b/sys/dev/pci/iha_pci.c
index 63c66cd7a37..420662d035b 100644
--- a/sys/dev/pci/iha_pci.c
+++ b/sys/dev/pci/iha_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iha_pci.c,v 1.12 2007/10/18 21:10:58 otto Exp $ */
+/* $OpenBSD: iha_pci.c,v 1.13 2020/06/27 14:29:45 krw Exp $ */
/*-------------------------------------------------------------------------
*
* Device driver for the INI-9XXXU/UW or INIC-940/950 PCI SCSI Controller.
@@ -126,7 +126,6 @@ iha_pci_attach(parent, self, aux)
printf(": %s\n", intrstr);
if (iha_init_tulip(sc) == 0) {
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
}
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index cbcb06c8213..dd89d121f97 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.119 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: ips.c,v 1.120 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
@@ -727,13 +727,11 @@ ips_attach(struct device *parent, struct device *self, void *aux)
sc->sc_scsi_link.adapter_softc = sc;
sc->sc_scsi_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_scsi_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(self, &saa,
scsiprint);
/* For each channel attach SCSI pass-through bus */
- bzero(&saa, sizeof(saa));
for (i = 0; i < IPS_MAXCHANS; i++) {
struct ips_pt *pt;
struct scsi_link *link;
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 3eadcdf81db..a6a70841da9 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.71 2020/06/24 22:03:41 cheloha Exp $ */
+/* $OpenBSD: mfii.c,v 1.72 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -788,7 +788,6 @@ mfii_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter_buswidth = sc->sc_info.mci_max_lds;
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)
@@ -925,7 +924,6 @@ mfii_syspd(struct mfii_softc *sc)
link->openings = sc->sc_max_cmds - 1;
link->pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = link;
sc->sc_pd->pd_scsibus = (struct scsibus_softc *)
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 1041143abe5..165ba274712 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.129 2020/06/24 18:33:50 krw Exp $ */
+/* $OpenBSD: mpii.c,v 1.130 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
* Copyright (c) 2009 James Giannoules
@@ -590,7 +590,6 @@ mpii_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = sc->sc_max_cmds - 1;
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_ih = pci_intr_establish(sc->sc_pc, ih, IPL_BIO,
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index 884131d5113..68e5f107024 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.54 2020/06/27 13:37:51 bket Exp $ */
+/* $OpenBSD: qle.c,v 1.55 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -677,7 +677,6 @@ qle_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.node_wwn &= ~(0xfULL << 56);
}
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/* config_found() returns the scsibus attached to us */
diff --git a/sys/dev/pci/trm_pci.c b/sys/dev/pci/trm_pci.c
index 584410e0637..e5b234bbdff 100644
--- a/sys/dev/pci/trm_pci.c
+++ b/sys/dev/pci/trm_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trm_pci.c,v 1.4 2006/11/28 23:59:45 dlg Exp $
+/* $OpenBSD: trm_pci.c,v 1.5 2020/06/27 14:29:45 krw Exp $
* ------------------------------------------------------------
* O.S : OpenBSD
* FILE NAME : trm_pci.c
@@ -153,7 +153,6 @@ trm_pci_attach(struct device *parent, struct device *self, void *aux)
if (intrstr != NULL)
printf(": %s\n", intrstr);
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
/* Tell SCSI layer about our SCSI bus */
diff --git a/sys/dev/pci/vmwpvs.c b/sys/dev/pci/vmwpvs.c
index b6179c12434..27e0ff6f306 100644
--- a/sys/dev/pci/vmwpvs.c
+++ b/sys/dev/pci/vmwpvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmwpvs.c,v 1.17 2020/06/24 18:33:50 krw Exp $ */
+/* $OpenBSD: vmwpvs.c,v 1.18 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -567,7 +567,6 @@ vmwpvs_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = VMWPVS_OPENINGS;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c
index 02487c3b77e..9c77401c271 100644
--- a/sys/dev/pv/hvs.c
+++ b/sys/dev/pv/hvs.c
@@ -316,7 +316,6 @@ hvs_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = sc->sc_nccb;
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = config_found(self, &saa, scsiprint);
diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c
index 8566a15a7c6..670b8fc0197 100644
--- a/sys/dev/pv/vioblk.c
+++ b/sys/dev/pv/vioblk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioblk.c,v 1.19 2020/06/24 18:47:57 krw Exp $ */
+/* $OpenBSD: vioblk.c,v 1.20 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
@@ -246,7 +246,6 @@ vioblk_attach(struct device *parent, struct device *self, void *aux)
if (virtio_has_feature(vsc, VIRTIO_BLK_F_RO))
sc->sc_link.flags |= SDEV_READONLY;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
printf("\n");
config_found(self, &saa, scsiprint);
diff --git a/sys/dev/pv/vioscsi.c b/sys/dev/pv/vioscsi.c
index 955657cd806..5a794cf7e59 100644
--- a/sys/dev/pv/vioscsi.c
+++ b/sys/dev/pv/vioscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioscsi.c,v 1.17 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: vioscsi.c,v 1.18 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2013 Google Inc.
*
@@ -167,7 +167,6 @@ vioscsi_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter_buswidth = max_target;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus *)config_found(self, &saa, scsiprint);
diff --git a/sys/dev/pv/xbf.c b/sys/dev/pv/xbf.c
index cdae4a5a6f4..370e8ee02f5 100644
--- a/sys/dev/pv/xbf.c
+++ b/sys/dev/pv/xbf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbf.c,v 1.38 2020/06/24 18:47:57 krw Exp $ */
+/* $OpenBSD: xbf.c,v 1.39 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2016, 2017 Mike Belopuhov
@@ -309,7 +309,6 @@ xbf_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = sc->sc_nccb;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = config_found(self, &saa, scsiprint);
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index ed03a5536c2..073f170295a 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.403 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.404 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1808,7 +1808,6 @@ sr_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.adapter_buswidth = SR_MAX_LD;
sc->sc_link.luns = 1;
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
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) {
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c
index de391e61c25..a89c1b767ce 100644
--- a/sys/dev/vscsi.c
+++ b/sys/dev/vscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vscsi.c,v 1.50 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: vscsi.c,v 1.51 2020/06/27 14:29:44 krw Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
@@ -152,7 +152,6 @@ vscsi_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = 16;
sc->sc_link.pool = &sc->sc_iopool;
- memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,
diff --git a/sys/scsi/mpath.c b/sys/scsi/mpath.c
index 81e5903d0a4..8563f06d65d 100644
--- a/sys/scsi/mpath.c
+++ b/sys/scsi/mpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath.c,v 1.48 2020/06/24 18:59:30 krw Exp $ */
+/* $OpenBSD: mpath.c,v 1.49 2020/06/27 14:29:45 krw Exp $ */
/*
* Copyright (c) 2009 David Gwynne <dlg@openbsd.org>
@@ -126,7 +126,6 @@ mpath_attach(struct device *parent, struct device *self, void *aux)
sc->sc_link.luns = 1;
sc->sc_link.openings = 1024; /* XXX magical */
- bzero(&saa, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev,