]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: rt712-sdca: remove redundant else path of if statement
authorColin Ian King <colin.i.king@gmail.com>
Wed, 7 May 2025 14:09:07 +0000 (15:09 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 May 2025 01:32:52 +0000 (10:32 +0900)
commit8147e75bd5f0977f6d389f6cdb4f10956cc3d88f
tree8ceec9b32bc7fe6a98b5abc428575f05a8788e67
parentd75d38dc460452cc8bbca483dee65839e11c71fe
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/20250507140907.255562-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt712-sdca.c