Commit 53b8e450 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown

ASoC: uniphier: remove redundant check of blk_id

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 21957b5b
...@@ -134,9 +134,6 @@ static int uniphier_aio_set_sysclk(struct snd_soc_dai *dai, int clk_id, ...@@ -134,9 +134,6 @@ static int uniphier_aio_set_sysclk(struct snd_soc_dai *dai, int clk_id,
bool pll_auto = false; bool pll_auto = false;
int pll_id, div_id; int pll_id, div_id;
if (clk_id == AUD_CLK_IO)
return -ENOTSUPP;
switch (clk_id) { switch (clk_id) {
case AUD_CLK_IO: case AUD_CLK_IO:
return -ENOTSUPP; return -ENOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment