]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: wm_adsp_control_add() error: uninitialized symbol 'ret'
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 15 Nov 2021 12:01:54 +0000 (12:01 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 15 Nov 2021 21:33:41 +0000 (21:33 +0000)
commitb58b5ab30ab1cd8ddbb949b8ec29fb91bf307aff
tree235fd87fb50d5a3b887299239230235d0ede9cce
parentb7e8200a2ad59d57c2d8af051f8b5c2ab6621fc3
ASoC: wm_adsp: wm_adsp_control_add() error: uninitialized symbol 'ret'

This patch fixes the static analysis warning as it is correctly
indicating a possible code path, it cannot know that for the affected
firmware versions subname would always be NULL.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211115120154.56782-1-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c