]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: Replace call to params_channels by local variable
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 19 Aug 2019 19:25:10 +0000 (21:25 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2019 17:25:59 +0000 (18:25 +0100)
commit279ada0e526e11d4805a6006457ab3b73f1a1000
treeffe81e01f8f9192b26812387c480cb2a9cc6df04
parent54e2ecdabc6c7996830382a59fc888f4a727ed70
ASoC: sun4i-i2s: Replace call to params_channels by local variable

The sun4i_i2s_hw_params already has a variable holding the value returned
by params_channels, so let's just use that variable instead of calling
params_channels multiple times.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://lore.kernel.org/r/c0faaac69ad40248f24eed3c3b2fa1ccc4a85b70.1566242458.git-series.maxime.ripard@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c