vt: selection, remove 2 local variables from set_selection_kernel
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 07:39:45 +0000 (08:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2020 07:35:38 +0000 (08:35 +0100)
commit101f227c24038aed5bd821414fdd9e9a3509484a
tree0628321beaf2d5700bb1782525ac914d7b936a50
parentba08cf452f3493e96793c9fec4ebb45e7101a0c0
vt: selection, remove 2 local variables from set_selection_kernel

multiplier and mode are not actually needed:
* multiplier is used only in kmalloc_array, so use "use_unicode ? 4 : 1"
  directly
* mode is used only to assign a bool in this manner:
  if (cond)
    x = true;
  else
    x = false;
  So do "x = cond" directly.

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