projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
862b250
)
ALSA: emu10k1: delete an unnecessary condition
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 5 Jun 2020 11:01:34 +0000
(14:01 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 5 Jun 2020 15:56:43 +0000
(17:56 +0200)
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 <dan.carpenter@oracle.com>
Link:
https://lore.kernel.org/r/20200605110134.GC978434@mwanda
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emu10k1x.c
patch
|
blob
|
history
diff --git
a/sound/pci/emu10k1/emu10k1x.c
b/sound/pci/emu10k1/emu10k1x.c
index ddb7c2ce3f7c909de568ade69bd7a3d95becd6b9..def8161cde4c22f35e12d3f09b608de82b618ef2 100644
(file)
--- a/
sound/pci/emu10k1/emu10k1x.c
+++ b/
sound/pci/emu10k1/emu10k1x.c
@@
-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);
}
}