diff options
author | Jiri Slaby <jslaby@suse.cz> | 2020-06-15 10:48:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 18:08:31 +0300 |
commit | b4d92b6575ac3c2d0ed8310d6b8279968dca10b8 (patch) | |
tree | b20e4eb8ca9e4d4f18a90177533a770b4d4cb2e4 /drivers/tty/Kconfig | |
parent | 77bc14f273c2dfecbf87f41fdc00345d99597e13 (diff) | |
download | linux-b4d92b6575ac3c2d0ed8310d6b8279968dca10b8.tar.xz |
vt: deduplicate setGx code
The code for setting G0 and G1 is duplicated -- for each of them. Move
the code to a separate function (vc_setGx) and distinguish the two cases
by a parameter.
Change if-else-if to switch which allows for slightly better
optimization (decision tree).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200615074910.19267-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/Kconfig')
0 files changed, 0 insertions, 0 deletions