summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-08-12 22:37:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-08-12 22:37:33 +0000
commit663b0773b990d5729d7783bcac66835ebbf4727d (patch)
treee220041cbe01e147df834b502f10733a1ef78ec4 /sys/dev
parent57159bacedbaa432db5ffb3b77fcde9edc1710dd (diff)
Remove last two 'uses' of d_subtype in tree. No point in setting
it to 0 immediately after a bzero() of the entire label. Nor in swapping endianness since nobody looks at it. Don't touch the actual field in disklabel. Yet. ok deraadt@ as part of larger diff that needs splitting up.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c
index cd2821bbb94..c391fb83b47 100644
--- a/sys/dev/flash.c
+++ b/sys/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.30 2014/05/08 21:17:00 miod Exp $ */
+/* $OpenBSD: flash.c,v 1.31 2015/08/12 22:37:32 krw Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -949,7 +949,6 @@ flashgetdefaultlabel(dev_t dev, struct flash_softc *sc,
bzero(lp, sizeof(struct disklabel));
lp->d_type = 0;
- lp->d_subtype = 0;
strncpy(lp->d_typename, "NAND flash", sizeof(lp->d_typename));
/* Use the product name up to the first space. */