mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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>
This commit is contained in:
parent
d71dbe8476
commit
eab936aa85
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user