]> 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)
commit394344603ab9a1c011645104f4f366366e4c52cb
treeffe81e01f8f9192b26812387c480cb2a9cc6df04
parenta4f77a6d8e2dfa4b565e64f7f10f712c62b6d385
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