diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-06-02 19:50:17 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-06-02 19:50:17 +0200 |
commit | cf3846d46053b23006e6a9042b586fc78e81af55 (patch) | |
tree | 156bbb7cd8e45141d0b9ba6ac658892b58e8b447 | |
parent | eabadf545c51d4c88c5f359db73726ec3ac653ba (diff) | |
download | alsa-lib-cf3846d46053b23006e6a9042b586fc78e81af55.tar.gz |
timer: remove dead code in _snd_timer_hw_open()
-rw-r--r-- | src/timer/timer_hw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/timer/timer_hw.c b/src/timer/timer_hw.c index cfb77463..fe4e40bb 100644 --- a/src/timer/timer_hw.c +++ b/src/timer/timer_hw.c @@ -330,8 +330,6 @@ int _snd_timer_hw_open(snd_timer_t **timer, char *name, SNDERR("Unexpected field %s", id); return -EINVAL; } - if (card < 0) - return -EINVAL; return snd_timer_hw_open(timer, name, dev_class, dev_sclass, card, device, subdevice, mode); } SND_DLSYM_BUILD_VERSION(_snd_timer_hw_open, SND_TIMER_DLSYM_VERSION); |