[PATCH 11/17] ASoC: sunxi: sun8i-codec: clarify expression

Maxime Ripard maxime at cerno.tech
Mon Mar 29 09:12:08 BST 2021


On Fri, Mar 26, 2021 at 04:59:21PM -0500, Pierre-Louis Bossart wrote:
> cppcheck warning:
> 
> sound/soc/sunxi/sun8i-codec.c:488:28: style: Clarify calculation
> precedence for '%' and '?'. [clarifyCalculation]
>  return sample_rate % 4000 ? 22579200 : 24576000;
>                            ^
> 
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>

Acked-by: Maxime Ripard <maxime at cerno.tech>

Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210329/a55a74fd/attachment-0001.sig>


More information about the linux-arm-kernel mailing list