diff options
| author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2021-09-16 15:57:25 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2021-09-17 13:17:45 +0100 |
| commit | f6b0c731a01fc581fcc4fb227e2d3ad9e0cb31d6 (patch) | |
| tree | 295e25569dc5e75269419cf242fe266ab3673229 /tools/perf/scripts/python/bin | |
| parent | f1291f41afa9d1901dd954c52869cd0e09c06652 (diff) | |
| download | cachepc-linux-f6b0c731a01fc581fcc4fb227e2d3ad9e0cb31d6.tar.gz cachepc-linux-f6b0c731a01fc581fcc4fb227e2d3ad9e0cb31d6.zip | |
ASoC: SOF: ipc: Remove redundant error check from sof_ipc_tx_message_unlocked
If the snd_sof_dsp_send_msg() failed then we have already returned from
sof_ipc_tx_message_unlocked() with the error message.
There is no need to check if ret is really 0 after this and we can return
directly the return value from tx_wait_done()
At the same time make the remaining checks for error (ret) to match.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210916125725.25934-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
