svn commit: r190502 - projects/gvinum/sys/geom/vinum

Ulf Lilleengen lulf at FreeBSD.org
Sat Mar 28 04:01:07 PDT 2009


Author: lulf
Date: Sat Mar 28 11:01:06 2009
New Revision: 190502
URL: http://svn.freebsd.org/changeset/base/190502

Log:
  - No need to use an extra variable for this.

Modified:
  projects/gvinum/sys/geom/vinum/geom_vinum_init.c

Modified: projects/gvinum/sys/geom/vinum/geom_vinum_init.c
==============================================================================
--- projects/gvinum/sys/geom/vinum/geom_vinum_init.c	Sat Mar 28 08:54:47 2009	(r190501)
+++ projects/gvinum/sys/geom/vinum/geom_vinum_init.c	Sat Mar 28 11:01:06 2009	(r190502)
@@ -103,7 +103,7 @@ gv_start_plex(struct gv_plex *p)
 	struct gv_volume *v;
 	struct gv_plex *up;
 	struct gv_sd *s;
-	int error, grow;
+	int error;
 
 	KASSERT(p != NULL, ("gv_start_plex: NULL p"));
 
@@ -149,15 +149,12 @@ gv_start_plex(struct gv_plex *p)
 		 */
 		} else if (p->org == GV_PLEX_STRIPED &&
 		    p->state != GV_PLEX_DOWN) {
-			grow = 0;
 			LIST_FOREACH(s, &p->subdisks, in_plex) {
 				if (s->flags & GV_SD_GROW) {
-					grow = 1;
+					error = gv_grow_plex(p);
 					break;
 				}
 			}
-			if (grow)
-				error = gv_grow_plex(p);
 		}
 	}
 	return (error);


More information about the svn-src-projects mailing list