ASoC: rt712-sdca: remove redundant else path of if statement
authorColin Ian King <colin.i.king@gmail.com>
Thu, 8 May 2025 08:45:27 +0000 (09:45 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 May 2025 14:41:15 +0000 (23:41 +0900)
commit4815e9fc892bb85f856f119006687fdb6c71ee01
treecf0d6b13d41fabe3fe776b2c5ddf643b1ad4b22d
parent07cb9b51076f452c286fb69f3af4c65e54affaa3
ASoC: rt712-sdca: remove redundant else path of if statement

There is an if/else check where the else part is executed if
adc_vol_flag is true, this else path checks if adc_vol_flag
is true (which is a redundant second check) and the if path is
always taken. Remove the redundant check and remove the else
path since that can never occur.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20250508084527.316380-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt712-sdca-dmic.c