Skip to content
Snippets Groups Projects
user avatar
Colin Ian King authored
The negative error return from the call to to_sndif_format is being
assigned to an unsigned 8 bit integer and hence the check for a negative
value is always going to be false.  Fix this by using ret as the error
return and hence the negative error can be detected and assign
the u8 sndif_format to ret if there is no error.

Detected by CoverityScan, CID#1469385 ("Unsigned compared against 0")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamoccchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
014cea59
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..