alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sound/soc: remove useless bool conversion to bool variable
@ 2021-12-06  2:11 Bernard Zhao
  2021-12-06 13:24 ` Mark Brown
  2021-12-06 18:00 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Bernard Zhao @ 2021-12-06  2:11 UTC (permalink / raw)
  To: James Schulman, David Rhodes, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, alsa-devel, patches, linux-kernel
  Cc: Bernard Zhao

This patch remove useless bool conversion to bool variable

Signed-off-by: Bernard Zhao <bernard@vivo.com>
---
 sound/soc/codecs/cs35l35.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 =
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sound/soc: remove useless bool conversion to bool variable
  2021-12-06  2:11 [PATCH] sound/soc: remove useless bool conversion to bool variable Bernard Zhao
@ 2021-12-06 13:24 ` Mark Brown
  2021-12-06 18:00 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-12-06 13:24 UTC (permalink / raw)
  To: Bernard Zhao
  Cc: alsa-devel, Liam Girdwood, patches, Takashi Iwai, James Schulman,
	David Rhodes, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

On Sun, Dec 05, 2021 at 06:11:00PM -0800, Bernard Zhao wrote:

> This patch remove useless bool conversion to bool variable

> -	classh_config->classh_algo_enable = classh ? true : false;
> +	classh_config->classh_algo_enable = (classh != NULL);

There's no bool variable here...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sound/soc: remove useless bool conversion to bool variable
  2021-12-06  2:11 [PATCH] sound/soc: remove useless bool conversion to bool variable Bernard Zhao
  2021-12-06 13:24 ` Mark Brown
@ 2021-12-06 18:00 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-12-06 18:00 UTC (permalink / raw)
  To: alsa-devel, Takashi Iwai, linux-kernel, Jaroslav Kysela, patches,
	Bernard Zhao, James Schulman, Liam Girdwood, David Rhodes

On Sun, 5 Dec 2021 18:11:00 -0800, Bernard Zhao wrote:
> This patch remove useless bool conversion to bool variable
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] sound/soc: remove useless bool conversion to bool variable
      commit: e733ab7e3e5dc1bf7d34e050e839fc902ce7ff98

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-06 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06  2:11 [PATCH] sound/soc: remove useless bool conversion to bool variable Bernard Zhao
2021-12-06 13:24 ` Mark Brown
2021-12-06 18:00 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).