diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-09-24 01:41:35 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-09-24 01:41:35 +0000 |
commit | 73c88fe99e25d2d33d9034b6014a631acb319542 (patch) | |
tree | d9dcd734e77c77e90d9fcfe0a9c6726990a45220 /sys/scsi/sd.c | |
parent | dc86b228b6cb896b58ae2be05bc34ed6b35a91bc (diff) |
init err to 0 in sd_get_parms to avoid confusion when checking rigid
geometry. it doesnt matter waht the value there is cos rigid will be NULL,
but this is clearer.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 8ff42b8918b..74f6a87db2f 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.217 2010/09/22 01:18:57 matthew Exp $ */ +/* $OpenBSD: sd.c,v 1.218 2010/09/24 01:41:34 dlg Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -1404,7 +1404,7 @@ sd_get_parms(struct sd_softc *sc, struct disk_parms *dp, int flags) struct page_flex_geometry *flex = NULL; struct page_reduced_geometry *reduced = NULL; u_int32_t heads = 0, sectors = 0, cyls = 0, secsize = 0, sssecsize; - int err; + int err = 0; dp->disksize = scsi_size(sc->sc_link, flags, &sssecsize); |