vt: extract selection chars storing from vc_do_selection
authorJiri Slaby <jslaby@suse.cz>
Wed, 15 Apr 2020 09:36:08 +0000 (11:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Apr 2020 14:14:15 +0000 (16:14 +0200)
commit8fd31e69f890f691b7c548de20a7ee74955df593
tree9a87b9a520cabfa01112f838f46a368c8e20f510
parent9ba4ddbc04feac9513d573e02a4360db6f598455
vt: extract selection chars storing from vc_do_selection

Let's put it to a separate function, named vc_selection_store_chars.
Again, this makes vc_do_selection a bit shorter and more readable.
Having 4 local variables instead of 12 (5.6-rc1) looks much better now.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200415093608.10348-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/selection.c