OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0695ad9
)
sound/soc: remove useless bool conversion to bool variable
author
Bernard Zhao
<bernard@vivo.com>
Mon, 6 Dec 2021 02:11:00 +0000
(18:11 -0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Dec 2021 13:49:25 +0000
(13:49 +0000)
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>
sound/soc/codecs/cs35l35.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs35l35.c
b/sound/soc/codecs/cs35l35.c
index
7a5588f
..
961a3e0
100644
(file)
--- 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 =