Skip to content

Commit eab936a

Browse files
Luo Yifantiwai
authored andcommitted
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>
1 parent d71dbe8 commit eab936a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/ump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ int snd_ump_block_new(struct snd_ump_endpoint *ump, unsigned int blk,
366366
{
367367
struct snd_ump_block *fb, *p;
368368

369-
if (blk < 0 || blk >= SNDRV_UMP_MAX_BLOCKS)
369+
if (blk >= SNDRV_UMP_MAX_BLOCKS)
370370
return -EINVAL;
371371

372372
if (snd_ump_get_block(ump, blk))

0 commit comments

Comments
 (0)