summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2021-12-05 18:11:00 -0800
committerMark Brown <broonie@kernel.org>2021-12-06 13:49:25 +0000
commite733ab7e3e5dc1bf7d34e050e839fc902ce7ff98 (patch)
tree9c40a21a7761539b3d45e4671492ef80d16a23a5
parent0695ad92fe1a0bb7697eb92c6a145a73c5ab0e24 (diff)
sound/soc: remove useless bool conversion to bool variable
This patch remove useless bool conversion to bool variable Signed-off-by: Bernard Zhao <bernard@vivo.com> Link: https://lore.kernel.org/r/20211206021100.321170-1-bernard@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/cs35l35.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c
index 7a5588f1df01..961a3e07e70f 100644
--- a/sound/soc/codecs/cs35l35.c
+++ b/sound/soc/codecs/cs35l35.c
@@ -1311,7 +1311,7 @@ static int cs35l35_handle_of_data(struct i2c_client *i2c_client,
pdata->gain_zc = of_property_read_bool(np, "cirrus,amp-gain-zc");
classh = of_get_child_by_name(np, "cirrus,classh-internal-algo");
- classh_config->classh_algo_enable = classh ? true : false;
+ classh_config->classh_algo_enable = (classh != NULL);
if (classh_config->classh_algo_enable) {
classh_config->classh_bst_override =