]> asedeno.scripts.mit.edu Git - linux.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)
commitc7dd0828c088a71f30de8d249f63b2fa9f0d322d
treeffe81e01f8f9192b26812387c480cb2a9cc6df04
parent7df8f9a20196072162d9dc8fe99943f2d35f23d5
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