diff options
| author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-09-19 10:51:45 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-03 14:31:15 +0200 |
| commit | c2b0fb9f69987ddec6bf21f95157603ea4c83aff (patch) | |
| tree | 04cc5036a8e7cd7c273fcdf0180dbea9f9a49b59 /include | |
| parent | 72369f2d493d4c0f4f0ed5a66b19c6912c4837ef (diff) | |
| download | linux-c2b0fb9f69987ddec6bf21f95157603ea4c83aff.tar.gz linux-c2b0fb9f69987ddec6bf21f95157603ea4c83aff.tar.bz2 linux-c2b0fb9f69987ddec6bf21f95157603ea4c83aff.zip | |
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 'include')
0 files changed, 0 insertions, 0 deletions
