Date: Wed, 4 May 2011 17:56:53 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r221447 - in head/sys/geom: concat eli shsec stripe Message-ID: <201105041756.p44Hurt6061033@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Wed May 4 17:56:53 2011 New Revision: 221447 URL: http://svn.freebsd.org/changeset/base/221447 Log: Remove "for a moment" assignment. struct g_geom zeroed when allocated. MFC after: 1 week Modified: head/sys/geom/concat/g_concat.c head/sys/geom/eli/g_eli.c head/sys/geom/shsec/g_shsec.c head/sys/geom/stripe/g_stripe.c Modified: head/sys/geom/concat/g_concat.c ============================================================================== --- head/sys/geom/concat/g_concat.c Wed May 4 17:37:37 2011 (r221446) +++ head/sys/geom/concat/g_concat.c Wed May 4 17:56:53 2011 (r221447) @@ -547,8 +547,6 @@ g_concat_create(struct g_class *mp, cons } } 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; Modified: head/sys/geom/eli/g_eli.c ============================================================================== --- head/sys/geom/eli/g_eli.c Wed May 4 17:37:37 2011 (r221446) +++ head/sys/geom/eli/g_eli.c Wed May 4 17:56:53 2011 (r221447) @@ -682,8 +682,6 @@ g_eli_create(struct gctl_req *req, struc 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; /* Modified: head/sys/geom/shsec/g_shsec.c ============================================================================== --- head/sys/geom/shsec/g_shsec.c Wed May 4 17:37:37 2011 (r221446) +++ head/sys/geom/shsec/g_shsec.c Wed May 4 17:56:53 2011 (r221447) @@ -546,8 +546,6 @@ g_shsec_create(struct g_class *mp, const } } 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; Modified: head/sys/geom/stripe/g_stripe.c ============================================================================== --- head/sys/geom/stripe/g_stripe.c Wed May 4 17:37:37 2011 (r221446) +++ head/sys/geom/stripe/g_stripe.c Wed May 4 17:56:53 2011 (r221447) @@ -819,8 +819,6 @@ g_stripe_create(struct g_class *mp, cons } } 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105041756.p44Hurt6061033>