diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-03-26 22:59:18 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-31 19:03:20 +0200 |
commit | bf2a6b44d5e56a12dde6438a2d092475e54d1923 (patch) | |
tree | 4ad01bba10fc07dd4df41ea5a68406640c8935d9 /Makefile | |
parent | ASoC: pxa: remove useless assignment (diff) | |
download | linux-bf2a6b44d5e56a12dde6438a2d092475e54d1923.tar.xz linux-bf2a6b44d5e56a12dde6438a2d092475e54d1923.zip |
ASoC: sti: sti_uniperif: add missing error check
cppcheck warning:
sound/soc/sti/sti_uniperif.c:490:6: style: Variable 'ret' is
reassigned a value before the old one has been
used. [redundantAssignment]
ret = devm_snd_soc_register_component(&pdev->dev,
^
sound/soc/sti/sti_uniperif.c:486:6: note: ret is assigned
ret = sti_uniperiph_cpu_dai_of(node, priv);
^
sound/soc/sti/sti_uniperif.c:490:6: note: ret is overwritten
ret = devm_snd_soc_register_component(&pdev->dev,
^
sti_uniperiph_cpu_dai_of() can return -EINVAL which seems like a
good-enough reason to bail.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Link: https://lore.kernel.org/r/20210326215927.936377-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions