summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/aureal.c
diff options
context:
space:
mode:
authorariff <ariff@FreeBSD.org>2007-06-17 06:10:43 +0000
committerariff <ariff@FreeBSD.org>2007-06-17 06:10:43 +0000
commit26b1418aec0e344485edfdbd363bb6a118d8f92c (patch)
tree4b83bb89177952ccc325520800b4121f57cb9333 /sys/dev/sound/pci/aureal.c
parentff584e70faf04177b3d2b50035e4e0031ad7e655 (diff)
downloadFreeBSD-src-26b1418aec0e344485edfdbd363bb6a118d8f92c.zip
FreeBSD-src-26b1418aec0e344485edfdbd363bb6a118d8f92c.tar.gz
Flush remaining malloc() cleanups (M_NOWAIT -> M_WAITOK).
Diffstat (limited to 'sys/dev/sound/pci/aureal.c')
-rw-r--r--sys/dev/sound/pci/aureal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/sound/pci/aureal.c b/sys/dev/sound/pci/aureal.c
index e714fe6..6b2c644 100644
--- a/sys/dev/sound/pci/aureal.c
+++ b/sys/dev/sound/pci/aureal.c
@@ -558,11 +558,7 @@ au_pci_attach(device_t dev)
struct ac97_info *codec;
char status[SND_STATUSLEN];
- if ((au = malloc(sizeof(*au), M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL) {
- device_printf(dev, "cannot allocate softc\n");
- return ENXIO;
- }
-
+ au = malloc(sizeof(*au), M_DEVBUF, M_WAITOK | M_ZERO);
au->unit = device_get_unit(dev);
data = pci_read_config(dev, PCIR_COMMAND, 2);
OpenPOWER on IntegriCloud