Unverified Commit c6631cee authored by Jack Yu's avatar Jack Yu Committed by Mark Brown
Browse files

ASoC: rt-sdw-common: Enhance switch case to prevent uninitialized variable



If det_mode is not 0, 3 or 5 then function will return
jack_type with an uninitialzed value.
Enhance switch case to prevent uninitialized variable issue.

Signed-off-by: default avatarJack Yu <jack.yu@realtek.com>
Link: https://patch.msgid.link/8631337239d744088d56caab2d8f39cb@realtek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 45b36050
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment