vt: selection, localize use_unicode
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 07:39:46 +0000 (08:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2020 07:35:38 +0000 (08:35 +0100)
commit555b4ef79797f10079760b3c8712d9ed99c9d680
tree74db6784c9c6d346989beee13c9314ffa8831189
parent101f227c24038aed5bd821414fdd9e9a3509484a
vt: selection, localize use_unicode

use_unicode needs not be global. It is used only in set_selection_kernel
and sel_pos (a callee). It is also always set there prior calling
sel_pos. So make use_unicode local and rename it to plain shorter
"unicode". Finally, propagate it to sel_pos via parameter.

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