提交 3b2549a3 编写于 作者: D Dan Carpenter 提交者: Takashi Iwai

ALSA: control: potential uninitialized return value

Smatch complains that "ret" might be uninitialized.

Fixes: fbd3eb7f ("ALSA: control: Add verification for kctl accesses")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200108053706.h3hcnvmnf62wkjac@kili.mountainSigned-off-by: NTakashi Iwai <tiwai@suse.de>
上级 f1dd4795
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册