diff options
author | 2020-06-27 14:29:44 +0000 | |
---|---|---|
committer | 2020-06-27 14:29:44 +0000 | |
commit | a7997e14b2c5583c85c5c712c73af0f27d80f68b (patch) | |
tree | ed05f355cdd5a7f707ed31d2f1bc6178cdca08bc /sys/dev/ata/atascsi.c | |
parent | Add missing label. (diff) | |
download | wireguard-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/ata/atascsi.c')
-rw-r--r-- | sys/dev/ata/atascsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |