summaryrefslogtreecommitdiff
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-06-14 12:05:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-27 15:17:12 +0300
commita666c70c0c2c63a60b5672a14b022da9376cffb9 (patch)
tree6e92fcf8e171131158f844cb9ee072916f4e8a83 /drivers/tty/vt
parent1c2f6294a3613b84fc20d6620da078dedbb2ac1e (diff)
downloadlinux-a666c70c0c2c63a60b5672a14b022da9376cffb9.tar.xz
tty/vt: consolemap: remove dflt reset from con_do_clear_unimap()
con_do_clear_unimap() sets dflt to NULL and then calls con_release_unimap() which does the very same as the first thing. So remove the former as it is apparently superfluous. Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220614090537.15557-7-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/consolemap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c
index 9e94ec0e0f83..5f3e58165b98 100644
--- a/drivers/tty/vt/consolemap.c
+++ b/drivers/tty/vt/consolemap.c
@@ -563,8 +563,6 @@ static int con_do_clear_unimap(struct vc_data *vc)
if (!old || old->refcount > 1)
return con_allocate_new(vc);
- if (old == dflt)
- dflt = NULL;
old->sum = 0;
con_release_unimap(old);