summaryrefslogtreecommitdiffstats
path: root/sys/geom/eli/g_eli.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2011-05-04 17:56:53 +0000
committerae <ae@FreeBSD.org>2011-05-04 17:56:53 +0000
commitfc73075ad0162eae621875813c15622da02fbe2e (patch)
treee2004ebc2370bdd76ca85b511224d1d632a446d2 /sys/geom/eli/g_eli.c
parentf7ea6f62c3bd831f54d0c23223ca22e242f27867 (diff)
downloadFreeBSD-src-fc73075ad0162eae621875813c15622da02fbe2e.zip
FreeBSD-src-fc73075ad0162eae621875813c15622da02fbe2e.tar.gz
Remove "for a moment" assignment. struct g_geom zeroed when allocated.
MFC after: 1 week
Diffstat (limited to 'sys/geom/eli/g_eli.c')
-rw-r--r--sys/geom/eli/g_eli.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index 8edd147..8b22ee5 100644
--- a/sys/geom/eli/g_eli.c
+++ b/sys/geom/eli/g_eli.c
@@ -682,8 +682,6 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp,
G_ELI_DEBUG(1, "Creating device %s%s.", bpp->name, G_ELI_SUFFIX);
gp = g_new_geomf(mp, "%s%s", bpp->name, G_ELI_SUFFIX);
- gp->softc = NULL; /* for a moment */
-
sc = malloc(sizeof(*sc), M_ELI, M_WAITOK | M_ZERO);
gp->start = g_eli_start;
/*
OpenPOWER on IntegriCloud