FROMLIST: ASoC: Intel: Skylake: Fix uninitialized return

On failure to get dsp_ops, dsp_init returns error without assigning ret. ret
is assigned in code path which will never be executed. Fix it.

TEST=no oops during reboot testing on eve.

Signed-off-by: Todd Broch <>
(am from

Fixes: f77d443c4c29 ("ASoC: Intel: Skylake: Fix to free resources for dsp_init failure"
Reported-by: kbuild test robot <>
Signed-off-by: Subhransu S. Prusty <>
Signed-off-by: Mark Brown <>
(cherry picked from commit 9149916f1e8c912c585ddebf12a98e99bd81aafe)

Commit-Ready: Todd Broch <>
Tested-by: HARSHAPRIYA N <>
Tested-by: Todd Broch <>
Reviewed-by: Hsinyu Chao <>
Reviewed-by: HARSHAPRIYA N <>
(cherry picked from commit acae1e586215a320f8dd6fd1d21609e7b53ac1df)
Signed-off-by: Benson Leung <>

Change-Id: I9f69699b1db813b891b480477fa658f542b091dc
Reviewed-by: Hsinyu Chao <>
Commit-Queue: Benson Leung <>
Trybot-Ready: Benson Leung <>
Tested-by: Benson Leung <>
1 file changed