summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-10-23 14:39:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-10-23 14:39:20 +0000
commit62dd8b8849b1bcf681f61c025353af18aa55ff8b (patch)
tree02ce347058389d33ca52a478bead41c6fef81197 /sys/scsi
parentf2641472f7384596d92a57782f55f1e165ea0997 (diff)
bzero(disklabel) or memset(disklabel,0) should be enough for
anyone. No need to also set d_flags to 0.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/sd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 5d7f9db7c2a..d697de784a8 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.332 2022/09/01 13:45:27 krw Exp $ */
+/* $OpenBSD: sd.c,v 1.333 2022/10/23 14:39:19 krw Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -1145,7 +1145,6 @@ sdgetdisklabel(dev_t dev, struct sd_softc *sc, struct disklabel *lp,
DL_SETDSIZE(lp, sc->params.disksize);
lp->d_version = 1;
- lp->d_flags = 0;
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;