rcar: mux: Avoid use of ret uninitialised
authorMark Brown <broonie@kernel.org>
Mon, 14 Dec 2015 12:05:28 +0000 (12:05 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 15 Dec 2015 17:47:54 +0000 (17:47 +0000)
commit2b235a3da5560d65df6865ea436389e55a0f41ad
treed96c072b219f73d3ed08495ba85c9a70ae4bf37c
parent2e4118dac3d6765186dd1faf1fd3cede37b74e73
rcar: mux: Avoid use of ret uninitialised

We use ret as the return value from the rsnd_mix_probe() but if there
are no child nodes and no errors then we will never initialize ret leading
to build warnings. Ensure ret is initialized before we iterate over the
child nodes to avoid this.

Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/mix.c