summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/au88x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pci/au88x0.c')
-rw-r--r--sys/dev/sound/pci/au88x0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/au88x0.c b/sys/dev/sound/pci/au88x0.c
index 5bd5c6c..c5f845b 100644
--- a/sys/dev/sound/pci/au88x0.c
+++ b/sys/dev/sound/pci/au88x0.c
@@ -332,7 +332,7 @@ au88x0_chan_init(kobj_t obj, void *arg,
struct au88x0_info *aui = arg;
struct au88x0_chan_info *auci = au88x0_channel(aui, dir);
- if (sndbuf_alloc(buf, aui->aui_dmat, aui->aui_bufsize) == -1)
+ if (sndbuf_alloc(buf, aui->aui_dmat, aui->aui_bufsize) != 0)
return (NULL);
auci->auci_aui = aui;
auci->auci_pcmchan = chan;
OpenPOWER on IntegriCloud