aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@kernel.org>2023-07-31 10:02:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-31 17:16:04 +0200
commit602c802114a10cb03415fbed0163ca9ff97fc5d4 (patch)
tree3a9a1d65ca0114939610ea783c1a02437452e4d6 /tools/perf/scripts/python/task-analyzer.py
parentMerge 6.5-rc4 into tty-next (diff)
downloadlinux-602c802114a10cb03415fbed0163ca9ff97fc5d4.tar.gz
linux-602c802114a10cb03415fbed0163ca9ff97fc5d4.zip
serial: move WARN_ON() in uart_write() to the condition
uart code currently does the following in uart_write() and uart_flush_buffer(): if (cond) { WARN_ON(1); return; } It can be rewritten to more obvious and more readable: if (WARN_ON(cond)) return; Do so. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230731080244.2698-2-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions