diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-09-19 11:51:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-03 15:31:15 +0300 |
commit | c2b0fb9f69987ddec6bf21f95157603ea4c83aff (patch) | |
tree | 04cc5036a8e7cd7c273fcdf0180dbea9f9a49b59 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 72369f2d493d4c0f4f0ed5a66b19c6912c4837ef (diff) | |
download | linux-c2b0fb9f69987ddec6bf21f95157603ea4c83aff.tar.xz |
tty: n_tty: invert the condition in copy_from_read_buf()
Make "no numbers available" a fast quit from the function. And do the
heavy work outside the 'if'. This makes the code more understandable and
conforming to the common kernel coding style.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230919085156.1578-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions