mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Remove "for a moment" assignment. struct g_geom zeroed when allocated.
MFC after: 1 week
This commit is contained in:
parent
e62dffbf5d
commit
c211af0352
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221447
@ -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;
|
||||
|
@ -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;
|
||||
/*
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user