[bug report] ASoC: qcom: audioreach: fix ADSP ready check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux