OSDN Git Service

ASoC: uniphier: remove redundant check of PLL ID
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Thu, 21 Jun 2018 02:56:28 +0000 (11:56 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jun 2018 14:46:31 +0000 (15:46 +0100)
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>
sound/soc/uniphier/aio-cpu.c

index 2d9b7dd..ee90e6c 100644 (file)
@@ -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)