diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2024-12-11 08:49:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-14 15:40:16 +0100 |
commit | d2740f7d878932a4b4aaf69d751baf3825c1b287 (patch) | |
tree | 7d559fbc1bb9f02a4b018e028fb280914190dc47 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4d0e56d571b8675e5a4863f394884c7db4387bcb (diff) |
tty: serial: extract uart_change_port() from uart_set_info()
This "change_port" part of uart_set_info() is for no good reason
inlined there. It makes the function rather hard to read. Therefore,
extract it to a separate function.
This allows for flattening the ifs (with short path "return"s) and
avoiding two levels of indentation. Both making the code really flat and
comprehesible.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20241211074933.92973-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions