diff options
| author | Jose A. Perez de Azpillaga <azpijr@gmail.com> | 2026-03-21 19:27:00 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-31 10:30:41 +0200 |
| commit | ff97e01144fa4a1149c6352d35e8ead74c436460 (patch) | |
| tree | 5cacdb834125c31552bfd22d11375e594e1ab40d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 96e82c72feef0b76ebd2b5ec4ae9e5e03595ca78 (diff) | |
staging: rtl8723bs: refactor rtw_joinbss_event_prehandle to reduce indentation
The rtw_joinbss_event_prehandle function has excessive indentation due
to deeply nested if-statements.
Refactor the function using early returns and guard clauses for the
failure paths. This flattens the code and significantly improves
readability.
Signed-off-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260321182713.665872-3-azpijr@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
