diff options
author | Jiri Slaby <jslaby@suse.cz> | 2020-06-15 09:48:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 17:08:33 +0200 |
commit | f1bcbe141381a9f715f90d61003d6b47fe084d04 (patch) | |
tree | 78dcc4807ff25b822c6b4316cd18f82fa4fe76db /include/linux/console_struct.h | |
parent | f3205b29be7a18a198491004d058f3fc9d6eaf79 (diff) | |
download | linux-f1bcbe141381a9f715f90d61003d6b47fe084d04.tar.gz linux-f1bcbe141381a9f715f90d61003d6b47fe084d04.tar.bz2 linux-f1bcbe141381a9f715f90d61003d6b47fe084d04.zip |
vt: make tc write more obvious in vc_con_write_normal
Nested ternary operators spread over 4 lines are really evil for
reading. Turn the outer one to proper 'if'. Now, we see, there is a
common path, so the code can be simplified. This way, the code is
understandable now.
Checked using symbolic execution (klee), that the old and new behaviors
are the same.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200615074910.19267-22-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions