summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_pc98.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-09 08:56:26 +0000
committerphk <phk@FreeBSD.org>2003-04-09 08:56:26 +0000
commit3faf153e04971a765b1fc2aa0e91b8f1b713e62d (patch)
tree8e7933843975f9f427e08aefa17e8000a0ed0711 /sys/geom/geom_pc98.c
parent5f0dd74a54be7f925d739a48223595e57a379cfb (diff)
downloadFreeBSD-src-3faf153e04971a765b1fc2aa0e91b8f1b713e62d.zip
FreeBSD-src-3faf153e04971a765b1fc2aa0e91b8f1b713e62d.tar.gz
Style issue: use do {...} while(0); for multi-exit section.
Diffstat (limited to 'sys/geom/geom_pc98.c')
-rw-r--r--sys/geom/geom_pc98.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c
index 756f053..d9ed6da 100644
--- a/sys/geom/geom_pc98.c
+++ b/sys/geom/geom_pc98.c
@@ -305,7 +305,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
gsp = gp->softc;
g_topology_unlock();
gp->dumpconf = g_pc98_dumpconf;
- while (1) { /* a trick to allow us to use break */
+ do {
if (gp->rank != 2 && flags == G_TF_NORMAL)
break;
error = g_getattr("GEOM::fwsectors", cp, &fwsectors);
@@ -335,7 +335,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
g_topology_unlock();
g_free(buf);
break;
- }
+ } while (0);
g_topology_lock();
g_access_rel(cp, -1, 0, 0);
if (LIST_EMPTY(&gp->provider)) {
OpenPOWER on IntegriCloud