mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
1c2f6294a3
commit
a666c70c0c
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue