]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/core/pcm_native.c
[ALSA] Remove snd_runtime_check() macro
[karo-tx-linux.git] / sound / core / pcm_native.c
index e97b2d162cc72f3140792ec9725bf71078011183..e6e2b70314c0c3bd95e223f9fedce2ac2b7a4315 100644 (file)
@@ -2053,7 +2053,8 @@ static int snd_pcm_open(struct inode *inode, struct file *file)
        snd_pcm_file_t *pcm_file;
        wait_queue_t wait;
 
-       snd_runtime_check(device >= SNDRV_MINOR_PCM_PLAYBACK && device < SNDRV_MINOR_DEVICES, return -ENXIO);
+       if (device < SNDRV_MINOR_PCM_PLAYBACK || device >= SNDRV_MINOR_DEVICES)
+               return -ENXIO;
        pcm = snd_pcm_devices[(cardnum * SNDRV_PCM_DEVICES) + (device % SNDRV_MINOR_PCMS)];
        if (pcm == NULL) {
                err = -ENODEV;