lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8de362f9-1218-400f-b93f-b11f0c04711c@sirena.org.uk>
Date: Thu, 17 Oct 2024 13:03:57 +0100
From: Mark Brown <broonie@...nel.org>
To: Liu Jing <liujing@...s.chinamobile.com>
Cc: lgirdwood@...il.com, perex@...ex.cz, tiwai@...e.com,
	linux-sound@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: fix code redundancy in sound/soc/soc-core.c

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.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ