summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-12-06 20:34:50 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-09 20:25:07 (GMT)
commitc12d070fafc7253353f4cd261b24ece9838aa56e (patch)
tree7c742b403c84d45dd71aa3b1e859e43927ad8a7e /usr
parent4784cd9c1c65f17edb8ffd6dccaae5137a99603b (diff)
downloadlinux-fsl-qoriq-c12d070fafc7253353f4cd261b24ece9838aa56e.tar.xz
ASoC: tegra: fix uninitialized variables in set_fmt
commit 241bf43321a10815225f477bba96a42285a2da73 upstream. In tegra*_i2s_set_fmt(), in the (fmt == SND_SOC_DAIFMT_CBM_CFM) case, "val" is never assigned to, but left uninitialized. The other case does initialized it. Fix this by initializing val at the start of the function, and only ever ORing into it. Update the handling of "mask" so it works the same way for consistency. Update tegra20_spdif.c to use the same code-style for consistency, even though it doesn't happen to suffer from the same problem at present. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org> Fixes: 0f163546a772 ("ASoC: tegra: use regmap more directly") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions