From 50d866ce0f67ddcdf01ba0c1d25d8ef7cbf98c19 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 27 Apr 2002 07:07:37 +0000 Subject: [PATCH] Fix a {} bug which doesn't have any effect yet. Spotted by: jake --- sys/geom/geom_subr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 34fefcb8de65..d672c3ded814 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -290,13 +290,12 @@ redo_rank(struct g_geom *gp) continue; /* no rank to original geom means loop */ - if (gp == gp1) { + if (gp == gp1) return (ELOOP); /* no rank, put it at the end move on */ TAILQ_REMOVE(&geoms, gp1, geoms); TAILQ_INSERT_TAIL(&geoms, gp1, geoms); - } } return (0); }