diff options
author | 2015-08-12 22:37:32 +0000 | |
---|---|---|
committer | 2015-08-12 22:37:32 +0000 | |
commit | 4f55a22163a122079e6987a45f8728ba050f997e (patch) | |
tree | 13c4f8b8bd8b41e855f06146192aa7dd8e569728 /sys/dev/flash.c | |
parent | fix a case where ceill() returns 1.0L: in the x86 extended precision format (diff) | |
download | wireguard-openbsd-4f55a22163a122079e6987a45f8728ba050f997e.tar.xz wireguard-openbsd-4f55a22163a122079e6987a45f8728ba050f997e.zip |
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/flash.c')
-rw-r--r-- | sys/dev/flash.c | 3 |
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. */ |