Commit 3b2549a3 authored by Dan Carpenter's avatar Dan Carpenter Committed by 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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200108053706.h3hcnvmnf62wkjac@kili.mountainSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f1dd4795
...@@ -896,7 +896,7 @@ static int sanity_check_elem_value(struct snd_card *card, ...@@ -896,7 +896,7 @@ static int sanity_check_elem_value(struct snd_card *card,
u32 pattern) u32 pattern)
{ {
size_t offset; size_t offset;
int i, ret; int i, ret = 0;
u32 *p; u32 *p;
switch (info->type) { switch (info->type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment