summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2025-06-11 12:03:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-17 13:42:36 +0200
commit6529c88f6bfedaa5bc2354eb448771d884798877 (patch)
treeb4de7fde9e909a1d7ad5a675c64f52a60b0c56c4 /tools/perf/scripts/python/stackcollapse.py
parent05b537a175442c530593013ea31b3f48d5624916 (diff)
serial: 8250: invert condition to avoid a goto label
Use of "goto" in this code is frowned upon: +------- |if (port->type == PORT_UNKNOWN) | goto out_unlock; |CODE; |out_unlock: +------- Instead, simply do: +------- |if (port->type != PORT_UNKNOWN) | CODE; +------- Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20250611100319.186924-32-jirislaby@kernel.org 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