projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71dbe8
)
ALSA: ump: remove unnecessary check on blk
author
Luo Yifan
<luoyifan@cmss.chinamobile.com>
Fri, 8 Nov 2024 03:27:02 +0000
(11:27 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 8 Nov 2024 14:07:33 +0000
(15:07 +0100)
The unsigned expression 'blk' will never be negative, so remove the
unnecessary check.
Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com>
Link:
https://patch.msgid.link/20241108032702.217168-1-luoyifan@cmss.chinamobile.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump.c
patch
|
blob
|
history
diff --git
a/sound/core/ump.c
b/sound/core/ump.c
index
7d59a0a
..
ab4932d
100644
(file)
--- a/
sound/core/ump.c
+++ b/
sound/core/ump.c
@@
-366,7
+366,7
@@
int snd_ump_block_new(struct snd_ump_endpoint *ump, unsigned int blk,
{
struct snd_ump_block *fb, *p;
- if (blk
< 0 || blk
>= SNDRV_UMP_MAX_BLOCKS)
+ if (blk >= SNDRV_UMP_MAX_BLOCKS)
return -EINVAL;
if (snd_ump_get_block(ump, blk))