Commit 91231e52 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

ALSA: emu10k1: delete an unnecessary condition

The "val" variable is an unsigned int so it's always <= UINT_MAX.  This
check is always true so it can be removed.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200605110134.GC978434@mwandaSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 862b2509
...@@ -1040,7 +1040,7 @@ static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry, ...@@ -1040,7 +1040,7 @@ static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry,
if (sscanf(line, "%x %x %x", &reg, &channel_id, &val) != 3) if (sscanf(line, "%x %x %x", &reg, &channel_id, &val) != 3)
continue; continue;
if (reg < 0x49 && val <= 0xffffffff && channel_id <= 2) if (reg < 0x49 && channel_id <= 2)
snd_emu10k1x_ptr_write(emu, reg, channel_id, val); snd_emu10k1x_ptr_write(emu, reg, channel_id, val);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment