From 73c88fe99e25d2d33d9034b6014a631acb319542 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 24 Sep 2010 01:41:35 +0000 Subject: 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. --- sys/scsi/sd.c | 4 ++-- 1 file 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); -- cgit v1.2.3