diff options
author | Jiri Slaby <jslaby@suse.cz> | 2020-06-15 10:48:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 18:08:33 +0300 |
commit | f1bcbe141381a9f715f90d61003d6b47fe084d04 (patch) | |
tree | 78dcc4807ff25b822c6b4316cd18f82fa4fe76db /tools/pcmcia | |
parent | f3205b29be7a18a198491004d058f3fc9d6eaf79 (diff) | |
download | linux-f1bcbe141381a9f715f90d61003d6b47fe084d04.tar.xz |
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 'tools/pcmcia')
0 files changed, 0 insertions, 0 deletions