summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-17 07:00:39 +0000
committerphk <phk@FreeBSD.org>2002-03-17 07:00:39 +0000
commit093fe76cadc93fc0ce28b555ed520934d0d3fe7e (patch)
tree77ec34de1ec58668757d6e651f367fa5e6e745e1 /sys/geom/geom_slice.c
parent6c08146ae0d710b5e00f2b845f254dd043affd3d (diff)
downloadFreeBSD-src-093fe76cadc93fc0ce28b555ed520934d0d3fe7e.zip
FreeBSD-src-093fe76cadc93fc0ce28b555ed520934d0d3fe7e.tar.gz
Forgot to remove the old g_malloc() call when I split it.
Spotted by: dima
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 37ed863..cbe7b97 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -65,8 +65,6 @@ g_slice_init(unsigned nslice, unsigned scsize)
{
struct g_slicer *gsp;
- gsp = g_malloc(sizeof *gsp + nslice * sizeof(struct g_slice) + scsize,
- M_WAITOK | M_ZERO);
gsp = g_malloc(sizeof *gsp, M_WAITOK | M_ZERO);
gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO);
gsp->slices = g_malloc(nslice * sizeof(struct g_slice), M_WAITOK | M_ZERO);
OpenPOWER on IntegriCloud