diff options
author | greid <greid@FreeBSD.org> | 2001-06-21 19:45:59 +0000 |
---|---|---|
committer | greid <greid@FreeBSD.org> | 2001-06-21 19:45:59 +0000 |
commit | d0a8512542c38acd383f36c2727baf1aa307ad91 (patch) | |
tree | 08fa50df9ce5a5907be157ee121c5a334e8dd027 /sys/dev/sound/pci/csapcm.c | |
parent | a0eb3fcc17fbcf0a486ed584e0b45f087f602c57 (diff) | |
download | FreeBSD-src-d0a8512542c38acd383f36c2727baf1aa307ad91.zip FreeBSD-src-d0a8512542c38acd383f36c2727baf1aa307ad91.tar.gz |
Use the M_ZERO flag to malloc(9)
Reviewed by: cg
MFC after: 1 week
Diffstat (limited to 'sys/dev/sound/pci/csapcm.c')
-rw-r--r-- | sys/dev/sound/pci/csapcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/csapcm.c b/sys/dev/sound/pci/csapcm.c index 8218813..a52e08e 100644 --- a/sys/dev/sound/pci/csapcm.c +++ b/sys/dev/sound/pci/csapcm.c @@ -744,10 +744,9 @@ pcmcsa_attach(device_t dev) struct ac97_info *codec; struct sndcard_func *func; - csa = malloc(sizeof(*csa), M_DEVBUF, M_NOWAIT); + csa = malloc(sizeof(*csa), M_DEVBUF, M_NOWAIT | M_ZERO); if (csa == NULL) return (ENOMEM); - bzero(csa, sizeof(*csa)); unit = device_get_unit(dev); func = device_get_ivars(dev); csa->binfo = func->varinfo; |