From: Kuninori Morimoto Date: Wed, 7 Jan 2026 05:18:08 +0000 (+0000) Subject: ASoC: codecs: es8375: remove unnecessary format check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22a4776a9ce50aa47f602d28f53ba9d613a38f49;p=thirdparty%2Fkernel%2Flinux.git ASoC: codecs: es8375: remove unnecessary format check It already have default for error case (A), no need to have SND_SOC_DAIFMT_RIGHT_J for error (B). Remove it. static int es8375_set_dai_fmt(...) ... switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { case SND_SOC_DAIFMT_RIGHT_J: (B) return -EINVAL; ... default: (A) return -EINVAL; } ... } Signed-off-by: Kuninori Morimoto Link: https://patch.msgid.link/87eco20zn3.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/es8375.c b/sound/soc/codecs/es8375.c index 36b0ebdce514d..0b9406e93c0ef 100644 --- a/sound/soc/codecs/es8375.c +++ b/sound/soc/codecs/es8375.c @@ -397,8 +397,6 @@ static int es8375_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) case SND_SOC_DAIFMT_I2S: codeciface &= 0xFC; break; - case SND_SOC_DAIFMT_RIGHT_J: - return -EINVAL; case SND_SOC_DAIFMT_LEFT_J: codeciface &= 0xFC; codeciface |= 0x01;