Re: [PATCH] ASoC: fix code redundancy in sound/soc/soc-core.c

From: Mark Brown
Date: Thu Oct 17 2024 - 08:04:10 EST


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