diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-06-21 14:45:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-22 12:47:13 +0100 |
commit | d245fff1013cb7456ea9ca3f7b858e438c6bbf79 (patch) | |
tree | 926a108627e678cecf41d42cad41cf15062611d3 /sound/soc/sof/imx | |
parent | 8c4863c261c812a1088b0f8c6b66386d885390e1 (diff) |
ASoC: codecs: wcd938x: fix uninitialized symbol warnings
This patch fixes below two uninitialized symbol warnings
warning:
sound/soc/codecs/wcd938x.c:2092 wcd938x_tx_swr_ctrl()
error: uninitialized symbol 'rate'
sound/soc/codecs/wcd938x.c:2189 wcd938x_tx_channel_config()
error: uninitialized symbol 'reg'.
First one my brining in check to already existing if condition and
second one by adding a default switch case to avoid any access to reg.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210621134502.19537-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/imx')
0 files changed, 0 insertions, 0 deletions