diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2022-06-06 18:36:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-10 13:51:31 +0200 |
commit | 65534736d9a5cab5340ae8819e1394b6325e8390 (patch) | |
tree | 27ecb852fc38006c27b47374c525bd6e63d41910 /scripts/sorttable.h | |
parent | 6bb6fa6908ebd3cb4e14cd4f0ce272ec885d2eb0 (diff) | |
download | linux-stable-65534736d9a5cab5340ae8819e1394b6325e8390.tar.gz linux-stable-65534736d9a5cab5340ae8819e1394b6325e8390.tar.bz2 linux-stable-65534736d9a5cab5340ae8819e1394b6325e8390.zip |
tty: Use flow-control char function on closing path
Use n_tty_receive_char_flow_ctrl also on the closing path. This makes
the code cleaner and consistent.
However, there a small change of regression!
The earlier closing path has a small difference compared with the
normal receive path. If START_CHAR and STOP_CHAR are equal, their
precedence is different depending on which path a character is
processed. I don't know whether this difference was intentional or
not, and if equal START_CHAR and STOP_CHAR is actually used anywhere.
But it feels not so useful corner case.
While this change would logically belong to those earlier changes,
having a separate patch for this is useful. If this regresses, bisect
can pinpoint this change rather than the large patch. Also, this
change is not necessary to minimal fix for the issue addressed in
the previous patch.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220606153652.63554-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/sorttable.h')
0 files changed, 0 insertions, 0 deletions