diff options
author | Luo Yifan <luoyifan@cmss.chinamobile.com> | 2024-11-08 11:27:02 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-11-08 15:07:33 +0100 |
commit | eab936aa8500ea09fb3faad25af817221b8a5cb2 (patch) | |
tree | 988310788b90a2a903c32fe5c9be4e53872aff66 /sound | |
parent | d71dbe8476e775f549d1fbb747fe132e890deb65 (diff) |
ALSA: ump: remove unnecessary check on blk
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/ump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/ump.c b/sound/core/ump.c index 7d59a0a9b037..ab4932dc499f 100644 --- 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)) |