diff options
| author | Bob Song <songxiebing@kylinos.cn> | 2026-08-12 11:30:07 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-08-12 07:28:48 +0200 |
| commit | 67300656f6a690c0146b2bb375f3d30eb05a7bea (patch) | |
| tree | a55fa4bd8cbbb18a3dd7df1310057216e16e74a5 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 21e958c4fd92d63139039430c246613505480689 (diff) | |
ALSA: hda: simplify match functions and remove unreachable return
hda_bus_match() has an unreachable 'return 1' after an if/else that
covers both branches. Remove the superfluous return and simplify the
control flow by dropping the else branch.
hdac_codec_match() uses a redundant if/else to return 1 or 0.
Simplify to a single return statement.
Signed-off-by: Bob Song <songxiebing@kylinos.cn>
Link: https://patch.msgid.link/20260812033007.633564-1-songxiebing@kylinos.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
