All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: SOF: AMD: simplify return status handling
@ 2021-12-21 16:18 ` Ajit Kumar Pandey
  0 siblings, 0 replies; 11+ messages in thread
From: Ajit Kumar Pandey @ 2021-12-21 16:18 UTC (permalink / raw)
  To: broonie, alsa-devel
  Cc: Vijendar.Mukunda, Alexander.Deucher, Basavaraj.Hiregoudar,
	Sunil-kumar.Dommati, Pierre-Louis Bossart, Ranjani Sridharan,
	Péter Ujfalusi, Liam Girdwood, Ranjani Sridharan,
	Kai Vehmanen, Daniel Baluta, Jaroslav Kysela, Takashi Iwai,
	Ajit Kumar Pandey, Bard Liao,
	moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
	open list

From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

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>
---
 sound/soc/sof/amd/acp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c
index 4c5550e8d364..fe9b7dc5bc86 100644
--- a/sound/soc/sof/amd/acp.c
+++ b/sound/soc/sof/amd/acp.c
@@ -219,7 +219,7 @@ int configure_and_run_sha_dma(struct acp_dev_data *adata, void *image_addr,
 		return -EINVAL;
 	}
 
-	return ret;
+	return 0;
 }
 
 int acp_dma_status(struct acp_dev_data *adata, unsigned char ch)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-12-21 17:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 16:18 [PATCH 1/3] ASoC: SOF: AMD: simplify return status handling Ajit Kumar Pandey
2021-12-21 16:18 ` Ajit Kumar Pandey
2021-12-21 16:18 ` [PATCH 2/3] ASoC: amd: acp-config: Enable SOF audio for Google chrome boards Ajit Kumar Pandey
2021-12-21 16:18   ` Ajit Kumar Pandey
2021-12-21 16:18 ` [PATCH 3/3] ASoC: amd: acp-config: Update sof_tplg_filename for SOF machines Ajit Kumar Pandey
2021-12-21 16:18   ` Ajit Kumar Pandey
2021-12-21 16:37 ` [PATCH 1/3] ASoC: SOF: AMD: simplify return status handling Mark Brown
2021-12-21 16:37   ` Mark Brown
2021-12-21 16:52   ` Ajit Kumar Pandey
2021-12-21 16:52     ` Ajit Kumar Pandey
2021-12-21 17:50 ` (subset) " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.