summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pci/neomagic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/neomagic.c b/sys/dev/sound/pci/neomagic.c
index 0b5afcbe6d57..8bfba53d324c 100644
--- a/sys/dev/sound/pci/neomagic.c
+++ b/sys/dev/sound/pci/neomagic.c
@@ -355,7 +355,7 @@ nmchan_setspeed(void *data, u_int32_t speed)
struct sc_chinfo *ch = data;
ch->spd = speed;
- return nm_setch(ch);
+ return nm_setch(ch)? 0 : ch->spd;
}
static int