diff options
author | ae <ae@FreeBSD.org> | 2011-05-04 17:56:53 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2011-05-04 17:56:53 +0000 |
commit | fc73075ad0162eae621875813c15622da02fbe2e (patch) | |
tree | e2004ebc2370bdd76ca85b511224d1d632a446d2 | |
parent | f7ea6f62c3bd831f54d0c23223ca22e242f27867 (diff) | |
download | FreeBSD-src-fc73075ad0162eae621875813c15622da02fbe2e.zip FreeBSD-src-fc73075ad0162eae621875813c15622da02fbe2e.tar.gz |
Remove "for a moment" assignment. struct g_geom zeroed when allocated.
MFC after: 1 week
-rw-r--r-- | sys/geom/concat/g_concat.c | 2 | ||||
-rw-r--r-- | sys/geom/eli/g_eli.c | 2 | ||||
-rw-r--r-- | sys/geom/shsec/g_shsec.c | 2 | ||||
-rw-r--r-- | sys/geom/stripe/g_stripe.c | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 10ee571..54e0fe0 100644 --- a/sys/geom/concat/g_concat.c +++ b/sys/geom/concat/g_concat.c @@ -547,8 +547,6 @@ g_concat_create(struct g_class *mp, const struct g_concat_metadata *md, } } gp = g_new_geomf(mp, "%s", md->md_name); - gp->softc = NULL; /* for a moment */ - sc = malloc(sizeof(*sc), M_CONCAT, M_WAITOK | M_ZERO); gp->start = g_concat_start; gp->spoiled = g_concat_orphan; 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; /* diff --git a/sys/geom/shsec/g_shsec.c b/sys/geom/shsec/g_shsec.c index a2d9e12..4bf918f 100644 --- a/sys/geom/shsec/g_shsec.c +++ b/sys/geom/shsec/g_shsec.c @@ -546,8 +546,6 @@ g_shsec_create(struct g_class *mp, const struct g_shsec_metadata *md) } } gp = g_new_geomf(mp, "%s", md->md_name); - gp->softc = NULL; /* for a moment */ - sc = malloc(sizeof(*sc), M_SHSEC, M_WAITOK | M_ZERO); gp->start = g_shsec_start; gp->spoiled = g_shsec_orphan; diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c index b8faffd..08841b5 100644 --- a/sys/geom/stripe/g_stripe.c +++ b/sys/geom/stripe/g_stripe.c @@ -819,8 +819,6 @@ g_stripe_create(struct g_class *mp, const struct g_stripe_metadata *md, } } gp = g_new_geomf(mp, "%s", md->md_name); - gp->softc = NULL; /* for a moment */ - sc = malloc(sizeof(*sc), M_STRIPE, M_WAITOK | M_ZERO); gp->start = g_stripe_start; gp->spoiled = g_stripe_orphan; |