mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
ALSA: timer: remove some dead code
We just checked "id.card < 0" on the lines before so we know it's not true here. We can delete that check. Also checkpatch.pl complains about some extra curly braces so we may as well fix that while we're at it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5885615e44
commit
e8ed68205f
1 changed files with 6 additions and 11 deletions
|
@ -1427,23 +1427,18 @@ static int snd_timer_user_next_device(struct snd_timer_id __user *_tid)
|
|||
break;
|
||||
case SNDRV_TIMER_CLASS_CARD:
|
||||
case SNDRV_TIMER_CLASS_PCM:
|
||||
if (id.card < 0) {
|
||||
id.card = 0;
|
||||
} else {
|
||||
if (id.card < 0) {
|
||||
id.card = 0;
|
||||
} else {
|
||||
if (id.device < 0) {
|
||||
id.device = 0;
|
||||
} else {
|
||||
if (id.subdevice < 0) {
|
||||
if (id.subdevice < 0)
|
||||
id.subdevice = 0;
|
||||
} else {
|
||||
else
|
||||
id.subdevice++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
list_for_each(p, &snd_timer_list) {
|
||||
timer = list_entry(p, struct snd_timer, device_list);
|
||||
if (timer->tmr_class > id.dev_class) {
|
||||
|
|
Loading…
Reference in a new issue