linux/sound/soc/sof/amd
Pierre-Louis Bossart 2dc643cd75
ASoC: SOF: AMD: simplify return status handling
cppcheck warning:

sound/soc/sof/amd/acp.c:222:9: warning: Identical condition and return
expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/sof/amd/acp.c:213:6: note: If condition 'ret' is true, the
function will return/exit
 if (ret)
     ^
sound/soc/sof/amd/acp.c:222:9: note: Returning identical expression 'ret'
 return ret;
        ^

Just return 0; on success.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Link: https://lore.kernel.org/r/20211221165802.236843-1-AjitKumar.Pandey@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-12-21 18:05:39 +00:00
..
acp-dsp-offset.h ASoC: SOF: amd: Add support for SOF firmware authentication 2021-11-17 17:35:56 +00:00
acp-ipc.c ASoC: SOF: amd: Add IPC support for ACP IP block 2021-11-17 17:35:47 +00:00
acp-loader.c ASoC: SOF: amd: Add fw loader and renoir dsp ops to load firmware 2021-11-17 17:35:46 +00:00
acp-pcm.c ASoC: SOF: amd: Add PCM stream callback for Renoir dai's 2021-11-17 17:35:49 +00:00
acp-stream.c ASoC: SOF: amd: Add PCM stream callback for Renoir dai's 2021-11-17 17:35:49 +00:00
acp-trace.c ASoC: SOF: amd: Add trace logger support 2021-11-17 17:35:55 +00:00
acp.c ASoC: SOF: AMD: simplify return status handling 2021-12-21 18:05:39 +00:00
acp.h ASoC: SOF: amd: Add support for SOF firmware authentication 2021-11-17 17:35:56 +00:00
Kconfig ASoC: SOF: amd: Add Renoir PCI driver interface 2021-11-17 17:35:52 +00:00
Makefile ASoC: SOF: amd: Add trace logger support 2021-11-17 17:35:55 +00:00
pci-rn.c ASoC: SOF: amd: Add support for SOF firmware authentication 2021-11-17 17:35:56 +00:00
renoir.c ASoC: SOF: avoid casting "const" attribute away 2021-12-17 11:06:16 +00:00