summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
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/softraid.c
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/softraid.c')
-rw-r--r--sys/dev/softraid.c3
1 files changed, 1 insertions, 2 deletions
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,