]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vt: remove redundant check on vc_mode in con_font_set()
authorWang Liang <wangliang74@huawei.com>
Thu, 4 Sep 2025 02:33:45 +0000 (10:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:49:52 +0000 (15:49 +0200)
commit45747017928c7e6ef71f3a09c5610b7026357162
tree15263c56be1962a354588ed84e3d5cd063b604be
parentfc6a5b540c02d1ec624e4599f45a17f2941a5c00
vt: remove redundant check on vc_mode in con_font_set()

Previous commit edab558feba1 ("vt: sort out locking for font handling")
move the vc_mode check into console_lock protect, but forget to remove the
old check in con_font_set(). Just remove the redundant check.

Signed-off-by: Wang Liang <wangliang74@huawei.com>
Link: https://lore.kernel.org/r/20250904023345.13731-1-wangliang74@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c