The topology lock is not needed for g_error_provider() function.

Discussed with:	phk
This commit is contained in:
Pawel Jakub Dawidek 2004-03-24 15:12:17 +00:00
parent 5295209eff
commit 030f6f3558

View File

@ -115,10 +115,10 @@ create_example_provider(struct g_geom *gp)
g_topology_lock();
pp = g_new_providerf(gp, "example_provider");
g_topology_unlock();
pp->mediasize = 65536;
pp->sectorsize = 512;
g_error_provider(pp, 0);
g_topology_unlock();
return (pp);
}