ASoC: uniphier: remove redundant check of blk_id
authorColin Ian King <colin.king@canonical.com>
Wed, 14 Feb 2018 16:10:36 +0000 (16:10 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Feb 2018 15:14:48 +0000 (15:14 +0000)
The check of blk_id == AUD_CLK_IO is redundant as it also being performed
in the following switch statement with the same return of -ENOTSUPP. Fix
this by removing the redundant comparison.

Detected by CoverityScan, CID#1465227 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/uniphier/aio-cpu.c

index 55f3248a31fd99244d8effcd51f2e32297046209..7cf2316c69a2aba8d011ebe010bc8d4e82fa7261 100644 (file)
@@ -134,9 +134,6 @@ static int uniphier_aio_set_sysclk(struct snd_soc_dai *dai, int clk_id,
        bool pll_auto = false;
        int pll_id, div_id;
 
-       if (clk_id == AUD_CLK_IO)
-               return -ENOTSUPP;
-
        switch (clk_id) {
        case AUD_CLK_IO:
                return -ENOTSUPP;