diff options
author | phk <phk@FreeBSD.org> | 2002-03-17 07:00:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-17 07:00:39 +0000 |
commit | 093fe76cadc93fc0ce28b555ed520934d0d3fe7e (patch) | |
tree | 77ec34de1ec58668757d6e651f367fa5e6e745e1 | |
parent | 6c08146ae0d710b5e00f2b845f254dd043affd3d (diff) | |
download | FreeBSD-src-093fe76cadc93fc0ce28b555ed520934d0d3fe7e.zip FreeBSD-src-093fe76cadc93fc0ce28b555ed520934d0d3fe7e.tar.gz |
Forgot to remove the old g_malloc() call when I split it.
Spotted by: dima
-rw-r--r-- | sys/geom/geom_slice.c | 2 |
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); |