OSDN Git Service

timer: remove dead code in _snd_timer_hw_open()
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Jun 2021 17:50:17 +0000 (19:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 2 Jun 2021 17:50:17 +0000 (19:50 +0200)
src/timer/timer_hw.c

index cfb7746..fe4e40b 100644 (file)
@@ -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);