ASoC: codecs: wcd934x: Use min macro for comparison and assignment
authorDeepak R Varma <drv@mailo.com>
Mon, 13 Feb 2023 17:40:46 +0000 (23:10 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 14 Feb 2023 13:25:20 +0000 (13:25 +0000)
commitec285cb999c145f70631f13a284b4696102d06ef
treedaf139af378237dd62029ea41cb37c8cd6ddc00f
parent1fd61d018aefc9bf366fd73eddc868163f2ed7da
ASoC: codecs: wcd934x: Use min macro for comparison and assignment

Simplify code by using min helper macro for logical evaluation and value
assignment. The change also facilitates code realignment for improved
readability.
Proposed change is identified using minmax.cocci Coccinelle script.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y+p2Hn0nrtHiKwPR@ubun2204.myguest.virtualbox.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd934x.c