From: Jaroslav Kysela Date: Wed, 2 Jun 2021 17:50:17 +0000 (+0200) Subject: timer: remove dead code in _snd_timer_hw_open() X-Git-Tag: v1.2.5.1~17 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=cf3846d46053b23006e6a9042b586fc78e81af55;p=alsa-lib.git timer: remove dead code in _snd_timer_hw_open() --- 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);