summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorWang Weiyang <wangweiyang2@huawei.com>2023-07-21 18:31:24 +0800
committerTakashi Iwai <tiwai@suse.de>2023-07-21 13:02:16 +0200
commit59ea9138c0753d7af19f9eba0ee29b8b55cecaf2 (patch)
tree60bb5645f7a19d48c2a3a706d7ed2036ce627ab1 /sound/core
parent5f69c65e07b99ceb113d304fe31e0c653eb1c4bc (diff)
downloadlinux-59ea9138c0753d7af19f9eba0ee29b8b55cecaf2.tar.gz
linux-59ea9138c0753d7af19f9eba0ee29b8b55cecaf2.tar.bz2
linux-59ea9138c0753d7af19f9eba0ee29b8b55cecaf2.zip
ALSA: seq: remove redundant unsigned comparison to zero
Since struct snd_ump_block_info::first_group is unsigned char, comparison to zero is redundant Signed-off-by: Wang Weiyang <wangweiyang2@huawei.com> Fixes: 81fd444aa371 ("ALSA: seq: Bind UMP device") Link: https://lore.kernel.org/r/20230721103124.18522-1-wangweiyang2@huawei.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/seq/seq_ump_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/seq/seq_ump_client.c b/sound/core/seq/seq_ump_client.c
index fe21c801af74..f26a1812dfa7 100644
--- a/sound/core/seq/seq_ump_client.c
+++ b/sound/core/seq/seq_ump_client.c
@@ -298,8 +298,7 @@ static void update_group_attrs(struct seq_ump_client *client)
}
list_for_each_entry(fb, &client->ump->block_list, list) {
- if (fb->info.first_group < 0 ||
- fb->info.first_group + fb->info.num_groups > SNDRV_UMP_MAX_GROUPS)
+ if (fb->info.first_group + fb->info.num_groups > SNDRV_UMP_MAX_GROUPS)
break;
group = &client->groups[fb->info.first_group];
for (i = 0; i < fb->info.num_groups; i++, group++) {