ALSA: emu10k1: delete an unnecessary condition
Subsystems (2)
PATCH 1/1 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 Dan Carpenter <[email protected]>
--- sound/pci/emu10k1/emu10k1x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/emu10k1/emu10k1x.c +1 -1
@@ -1040,7 +1040,7 @@ static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry,if (sscanf (line,"%x %x %x" , ®, &channel_id, &val) !=3 )continue ; -if (reg <0x49 && val <=0xffffffff && channel_id <=2 ) +if (reg <0x49 && channel_id <=2 )snd_emu10k1x_ptr_write (emu, reg, channel_id, val); } }
Signature · 1 line
2.26.2
Takashi Iwai
AppliedQuoted 5 lines · Dan Carpenter
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 Dan Carpenter <[email protected]>
Applied, thanks.
Takashi