diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-11-18 15:21:22 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-11-18 15:21:22 +0000 |
commit | 51c82207610826a4ad7bf626560db6021584440d (patch) | |
tree | 8da5c68a92019b9e37869775fe3a8353617ec207 /sys/dev/mlx/mlx.c | |
parent | 918549eb3151450239d659ae968cb9e68b863bfc (diff) | |
download | FreeBSD-src-51c82207610826a4ad7bf626560db6021584440d.zip FreeBSD-src-51c82207610826a4ad7bf626560db6021584440d.tar.gz |
Further use of M_ZERO.
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
Approved by: msmith
Diffstat (limited to 'sys/dev/mlx/mlx.c')
-rw-r--r-- | sys/dev/mlx/mlx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 3c69dc5..e5271c9 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -2267,9 +2267,8 @@ mlx_alloccmd(struct mlx_softc *sc) /* allocate a new command buffer? */ if (mc == NULL) { - mc = (struct mlx_command *)malloc(sizeof(*mc), M_DEVBUF, M_NOWAIT); + mc = (struct mlx_command *)malloc(sizeof(*mc), M_DEVBUF, M_NOWAIT | M_ZERO); if (mc != NULL) { - bzero(mc, sizeof(*mc)); mc->mc_sc = sc; error = bus_dmamap_create(sc->mlx_buffer_dmat, 0, &mc->mc_dmamap); if (error) { |