linux/sound/soc/sof
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
..
amd ASoC: SOF: AMD: simplify return status handling 2021-12-21 18:05:39 +00:00
imx ASoC: SOF: OF: Avoid reverse module dependency 2021-12-15 14:02:50 +00:00
intel ASoC: SOF: couple of cleanups 2021-12-17 17:32:45 +00:00
mediatek ASoC: SOF: OF: Avoid reverse module dependency 2021-12-15 14:02:50 +00:00
xtensa Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
compress.c ASoC: SOF: Introduce fragment elapsed notification API 2021-10-07 16:57:57 +01:00
control.c ASoC: SOF: Drop ctrl_type parameter for snd_sof_ipc_set_get_comp_data() 2021-12-15 22:16:47 +00:00
core.c ASoC: SOF: core: Unregister machine driver before IPC and debugfs 2021-11-15 19:25:27 +00:00
debug.c ASoC: SOF: debug: Add support for IPC message injection 2021-11-17 13:04:51 +00:00
ipc.c ASoC: SOF: ipc: Add null pointer check for substream->runtime 2021-12-17 11:06:18 +00:00
Kconfig ASoC: SOF: Kconfig: Make the SOF_DEVELOPER_SUPPORT depend on SND_SOC_SOF 2021-12-17 11:06:22 +00:00
loader.c Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
Makefile ASoC: SOF: mediatek: Add mt8195 hardware support 2021-11-18 13:57:35 +00:00
nocodec.c ASOC: SOF: simplify nocodec mode 2021-04-12 17:05:55 +01:00
ops.c ASoC: SOF: ops: Force DSP panic dumps to be printed 2021-10-07 15:45:35 +01:00
ops.h ASoC: SOF: avoid casting "const" attribute away 2021-12-17 11:06:16 +00:00
pcm.c ASoC: SOF: pcm: remove support for RESUME trigger 2021-12-17 11:06:12 +00:00
pm.c Merge series "ASoC: SOF: Improvements for debugging" from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: 2021-10-07 22:24:56 +01:00
sof-acpi-dev.c ASoC: SOF: Check desc->ops directly in acpi/pci/of probe functions 2021-05-21 13:13:35 +01:00
sof-acpi-dev.h ASoC: SOF: ACPI: avoid reverse module dependency 2021-03-02 15:31:40 +01:00
sof-audio.c ASoC: SOF: avoid casting "const" attribute away 2021-12-17 11:06:16 +00:00
sof-audio.h ASoC: SOF: Drop ctrl_type parameter for snd_sof_ipc_set_get_comp_data() 2021-12-15 22:16:47 +00:00
sof-of-dev.c ASoC: SOF: OF: Avoid reverse module dependency 2021-12-15 14:02:50 +00:00
sof-of-dev.h ASoC: SOF: OF: Avoid reverse module dependency 2021-12-15 14:02:50 +00:00
sof-pci-dev.c ASoC: Intel: boards: add max98390 2/4 speakers support 2021-11-30 13:08:14 +00:00
sof-pci-dev.h ASoC: SOF: pci: split PCI into different drivers 2021-03-02 15:32:00 +01:00
sof-priv.h ASoC: SOF: avoid casting "const" attribute away 2021-12-17 11:06:16 +00:00
sof-probes.c ASoC: SOF: sof-probes: Constify sof_probe_compr_ops 2021-12-14 13:22:16 +00:00
sof-probes.h ASoC: SOF: sof-probes: Constify sof_probe_compr_ops 2021-12-14 13:22:16 +00:00
stream-ipc.c ASoC: SOF: Make Intel IPC stream ops generic 2021-10-07 16:57:54 +01:00
topology.c ASoC: SOF: sof-audio: Drop the cmd member from struct snd_sof_control 2021-12-15 22:16:44 +00:00
trace.c ASoC: SOF: trace: send DMA_TRACE_FREE IPC during release 2021-11-15 13:26:48 +00:00
utils.c ASoC: SOF: core: Do not use 'bar' as parameter for block_read/write 2021-09-15 16:25:04 +01:00