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