diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-09-07 22:40:33 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-10 11:41:40 +0100 |
commit | 2e558a8127de7b2ed3302f9adcf332ba3feeadb2 (patch) | |
tree | f2de80816c7a82f2a24962922974c750407fd2b8 /fs | |
parent | 3004136b90bedc9e254ff659adb7a60299e9495e (diff) | |
download | lwn-2e558a8127de7b2ed3302f9adcf332ba3feeadb2.tar.gz lwn-2e558a8127de7b2ed3302f9adcf332ba3feeadb2.zip |
ASoC: dapm: Fix a couple uninitialized ret variables
Smatch complains that these variables could be uninitialized. The first
one in snd_soc_dai_link_event() is probably a false positive, because
probably we know the lists are not empty. I would normally ignore the
warning, but GCC complains here as well so I just silenced the warning.
The "ret" in snd_soc_dapm_new_dai() does need to be initialized or it
leads to a bogus dereference in the caller.
Fixes: 3bbf5d34fd4a ("ASoC: dapm: Move error handling to snd_soc_dapm_new_control_unlocked")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions