diff options
| author | Kuninori Morimoto <[email protected]> | 2020-02-10 12:14:26 +0900 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-02-11 15:41:44 +0000 |
| commit | e82ebffce3ec07584bcc2fc4c4d33a43fd9515f5 (patch) | |
| tree | 25c29da61a30115d67a4d4f6d6f53a71eb3fbade /tools/perf/scripts | |
| parent | 09e88f8a5c56ac5258935a5a543868c20a55d4dd (diff) | |
ASoC: soc-pcm: don't use bit-OR'ed error
Current soc-pcm is using bit-OR'ed error
ret |= snd_soc_component_close(component, substream);
ret |= snd_soc_component_hw_free(component, substream);
The driver may return arbitrary error codes so they can conflict.
The bit-OR'ed error works only if the return code is always consistent.
This patch fixup it, and use *last* ret value.
Signed-off-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions