[bug report] ASoC: qcom: audioreach: fix ADSP ready check
23 Mar
2023
23 Mar
'23
3:54 p.m.
Hello Srinivas Kandagatla,
The patch dd33c2e7b21d: "ASoC: qcom: audioreach: fix ADSP ready check" from Feb 9, 2023, leads to the following Smatch static checker warning:
sound/soc/qcom/qdsp6/q6apm.c:167 q6apm_is_adsp_ready() warn: signedness bug returning '(-12)'
sound/soc/qcom/qdsp6/q6apm.c 164 bool q6apm_is_adsp_ready(void) 165 { 166 if (g_apm) --> 167 return q6apm_get_apm_state(g_apm); ^^^^^^^^^^^^^^^^^^^ This can return negative error codes on allocation failure.
168 169 return false; 170 }
regards, dan carpenter
640
Age (days ago)
640
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dan Carpenter