ASoC: soc-pcm: return correct -ERRNO in failure path
authorSouptick Joarder <jrdr.linux@gmail.com>
Sat, 9 Jan 2021 03:45:01 +0000 (09:15 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 11 Jan 2021 14:03:52 +0000 (14:03 +0000)
commit4eeed5f40354735c4e68e71904db528ed19c9cbb
treeaf9048d972b22b37161178fe6fee23e8e22013af
parent5a15cd7fce20b1fd4aece6a0240e2b58cd6a225d
ASoC: soc-pcm: return correct -ERRNO in failure path

Kernel test robot throws below error ->

sound/soc/soc-pcm.c:2523 dpcm_run_update_startup() error: uninitialized
symbol 'ret'.

Initializing ret = 0 and returning correct -ERRNO in failure path.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Link: https://lore.kernel.org/r/1610163901-5523-1-git-send-email-jrdr.linux@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c