diff options
author | Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> | 2018-06-21 11:56:28 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-22 15:46:31 +0100 |
commit | 366f074d047b2538cc5d7e4a820bb6c117a3ccec (patch) | |
tree | 5843c362051c26d3c774a5768e425c317a9957b6 /sound/soc/uniphier | |
parent | 2854a214f398f2c3315204a05efff11739fec062 (diff) |
ASoC: uniphier: remove redundant check of PLL ID
This patch removes redudant check of PLL ID. struct uniphier_aio_pll
enable member has already been checked at is_valid_pll().
Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/uniphier')
-rw-r--r-- | sound/soc/uniphier/aio-cpu.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c index 2d9b7dde2ffa..ee90e6c3937c 100644 --- a/sound/soc/uniphier/aio-cpu.c +++ b/sound/soc/uniphier/aio-cpu.c @@ -219,15 +219,10 @@ static int uniphier_aio_set_pll(struct snd_soc_dai *dai, int pll_id, unsigned int freq_out) { struct uniphier_aio *aio = uniphier_priv(dai); - struct device *dev = &aio->chip->pdev->dev; int ret; if (!is_valid_pll(aio->chip, pll_id)) return -EINVAL; - if (!aio->chip->plls[pll_id].enable) { - dev_err(dev, "PLL(%d) is not implemented\n", pll_id); - return -ENOTSUPP; - } ret = aio_chip_set_pll(aio->chip, pll_id, freq_out); if (ret < 0) |