From 1cf904e894b2bfba1045a3a15b326b06a415a3da Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 30 Sep 2008 14:44:12 +0200 Subject: [PATCH] Fix return value of snd_ctl_hw_subscribe_events() snd_ctl_subscribe_events() must return 0 when succeeded. Signed-off-by: Takashi Iwai --- src/control/control_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/control_hw.c b/src/control/control_hw.c index 13ee2a7f..aeb2c23e 100644 --- a/src/control/control_hw.c +++ b/src/control/control_hw.c @@ -116,7 +116,7 @@ static int snd_ctl_hw_subscribe_events(snd_ctl_t *handle, int subscribe) SYSERR("SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS failed"); return -errno; } - return subscribe; + return 0; } static int snd_ctl_hw_card_info(snd_ctl_t *handle, snd_ctl_card_info_t *info) -- 2.47.1