commit | b4d92b6575ac3c2d0ed8310d6b8279968dca10b8 | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Mon Jun 15 09:48:36 2020 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jun 24 17:08:31 2020 +0200 |
tree | b20e4eb8ca9e4d4f18a90177533a770b4d4cb2e4 | |
parent | 77bc14f273c2dfecbf87f41fdc00345d99597e13 [diff] |
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>