diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-25 16:34:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-25 16:34:31 +0000 |
commit | 7b06664d8606cdc9dc43671cc4b414f5b21c7b13 (patch) | |
tree | f1232c5221e2e2d18c5658b90d6cca0fbc712dda /sys/dev | |
parent | bf703c9cdd7c6155a97b837f841d69e39dd49943 (diff) |
No need for a bzero(), just init saa.sf to NULL. All the saa.saa
fields are explicitly initialized.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index a6f577fb36d..a7281352a00 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.52 2020/07/22 13:16:05 krw Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.53 2020/07/25 16:34:30 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -136,7 +136,7 @@ sdmmc_scsi_attach(struct sdmmc_softc *sc) sc->sc_scsibus = scbus; - bzero(&saa, sizeof(saa)); + saa.sf = NULL; saa.saa.saa_adapter_target = SDMMC_SCSIID_HOST; saa.saa.saa_adapter_buswidth = scbus->sc_ntargets; saa.saa.saa_adapter_softc = sc; |