summaryrefslogtreecommitdiff
path: root/sys/dev/ata
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/dev/ata
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/dev/ata')
-rw-r--r--sys/dev/ata/wd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index feefe5c61cd..6a89ea34d18 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.129 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: wd.c,v 1.130 2022/10/23 14:39:19 krw Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -728,7 +728,6 @@ wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp)
}
/* XXX - user viscopy() like sd.c */
strncpy(lp->d_packname, wd->sc_params.atap_model, sizeof lp->d_packname);
- lp->d_flags = 0;
lp->d_version = 1;
lp->d_magic = DISKMAGIC;