1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Style improvement.

This commit is contained in:
Poul-Henning Kamp 2003-05-02 06:22:48 +00:00
parent 03af3a23dd
commit 3ddef7422c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114499

View File

@ -183,7 +183,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
return(NULL);
}
g_topology_unlock();
while (1) {
do {
sectorsize = cp->provider->sectorsize;
buf = g_read_data(cp, 0, sectorsize, &error);
if (buf == NULL || error != 0)
@ -214,9 +214,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
pp2->sectorsize = sc->sectorsize = pp->sectorsize;
g_error_provider(pp2, 0);
g_topology_unlock();
break;
}
} while (0);
g_topology_lock();
if (buf != NULL)
g_free(buf);