Srinivas Kandagatla d245fff101
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>
2021-06-22 12:47:13 +01:00
..
2021-03-18 13:50:35 +00:00
2021-04-20 17:25:51 +01:00
2021-04-20 17:25:51 +01:00
2021-03-10 13:10:37 +00:00
2021-03-10 09:34:06 +01:00
2021-03-31 18:00:38 +01:00
2021-03-31 18:00:38 +01:00
2021-02-04 18:45:19 +00:00
2021-06-14 15:01:04 +01:00
2018-04-26 12:44:15 +01:00
2019-06-12 13:52:26 +01:00
2020-01-10 13:31:49 +00:00
2021-03-10 13:09:57 +00:00
2020-05-07 13:18:04 +01:00
2021-03-10 13:09:58 +00:00
2021-03-10 13:09:59 +00:00
2019-07-26 13:10:09 +01:00
2021-03-10 13:10:39 +00:00
2021-03-31 17:16:14 +01:00
2021-03-10 13:10:05 +00:00
2021-03-10 13:10:06 +00:00
2021-03-10 13:10:07 +00:00
2020-12-09 17:00:33 +00:00
2018-05-18 11:20:11 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2020-10-26 15:27:13 +01:00
2020-10-02 21:05:29 +01:00
2021-03-11 13:24:15 +00:00
2021-03-11 13:24:17 +00:00