diff options
| author | Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> | 2026-01-19 21:52:49 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-01-20 12:14:28 +0000 |
| commit | 53dfb2ad6fcff111f58aa506afbbf6fd82f32cb1 (patch) | |
| tree | 165a191dba3c83e92cac6da6adb181d70549dd99 /tools/perf/scripts/python | |
| parent | 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 (diff) | |
| download | linux-53dfb2ad6fcff111f58aa506afbbf6fd82f32cb1.tar.gz linux-53dfb2ad6fcff111f58aa506afbbf6fd82f32cb1.zip | |
ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()
The code in rz_ssi_stream_is_play() checks whether substream->stream is
different from SNDRV_PCM_STREAM_PLAYBACK and returns the capture
struct rz_ssi_stream in that case. The logic is easier to follow if
substream->stream is compared directly against SNDRV_PCM_STREAM_CAPTURE
and return the capture struct rz_ssi_stream.
Use the conditional operator to simplify the code.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260119195252.3362486-2-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
