2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-18 10:34:24 +08:00

ALSA: control: potential uninitialized return value

Smatch complains that "ret" might be uninitialized.

Fixes: fbd3eb7f66 ("ALSA: control: Add verification for kctl accesses")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200108053706.h3hcnvmnf62wkjac@kili.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Dan Carpenter 2020-01-08 08:37:06 +03:00 committed by Takashi Iwai
parent f1dd4795b1
commit 3b2549a374

View File

@ -896,7 +896,7 @@ static int sanity_check_elem_value(struct snd_card *card,
u32 pattern)
{
size_t offset;
int i, ret;
int i, ret = 0;
u32 *p;
switch (info->type) {