diff options
author | Stephen Warren <[email protected]> | 2013-12-06 13:34:50 -0700 |
---|---|---|
committer | Mark Brown <[email protected]> | 2013-12-09 17:14:32 +0000 |
commit | 241bf43321a10815225f477bba96a42285a2da73 (patch) | |
tree | f29b82e43759d7121915776589c363dcd7bb15bc /net/lapb/lapb_out.c | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
ASoC: tegra: fix uninitialized variables in set_fmt
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 <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Fixes: 0f163546a772 ("ASoC: tegra: use regmap more directly")
Cc: <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions