Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;