Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e5d720c authored by Adrian Bunk's avatar Adrian Bunk Committed by Jaroslav Kysela
Browse files

[ALSA] sound/core/control.c: remove dead code



This patch removes some obviously dead code spotted by the Coverity
checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent efeccac5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1275,7 +1275,7 @@ static ssize_t snd_ctl_read(struct file *file, char __user *buffer,
			schedule();
			schedule();
			remove_wait_queue(&ctl->change_sleep, &wait);
			remove_wait_queue(&ctl->change_sleep, &wait);
			if (signal_pending(current))
			if (signal_pending(current))
				return result > 0 ? result : -ERESTARTSYS;
				return -ERESTARTSYS;
			spin_lock_irq(&ctl->read_lock);
			spin_lock_irq(&ctl->read_lock);
		}
		}
		kev = snd_kctl_event(ctl->events.next);
		kev = snd_kctl_event(ctl->events.next);