summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r--sys/geom/geom_dev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index 1aaac8c..9b058c8 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -297,11 +297,6 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
break;
}
- if (error != 0 && cmd == DIOCGDVIRGIN) {
- g_topology_lock();
- gp = g_create_geomf("BSD", cp->provider, NULL);
- g_topology_unlock();
- }
PICKUP_GIANT();
g_waitidle();
if (error == ENOIOCTL) {
OpenPOWER on IntegriCloud