On Tue, Oct 15, 2024 at 11:17:42AM +0800, Liu Jing wrote: > In the snd_soc_register_dai function, the logic for assigning the value of dai->id can be simplified > using the conditional operator (also known as the ternary operator). The ternery operator is rarely a legibility improvement when used standalone, this seems to just make thing harder to follow.
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH] ASoC: fix code redundancy in sound/soc/soc-core.c
- From: Liu Jing
- [PATCH] ASoC: fix code redundancy in sound/soc/soc-core.c
- Prev by Date: [PATCH] ASoC: SOF: sof-of-dev: add parameter to override tplg/fw_filename
- Next by Date: Re: [PATCH 01/11] soundwire: sdw_intel: include linux/acpi.h
- Previous by thread: [PATCH] ASoC: fix code redundancy in sound/soc/soc-core.c
- Next by thread: [PATCH] ASoC: fix code redundancy in sound/soc/soc-dapm.c
- Index(es):