Skip to content

Commit 4574701

Browse files
Wang Lianggregkh
authored andcommitted
vt: remove redundant check on vc_mode in con_font_set()
Previous commit edab558 ("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>
1 parent fc6a5b5 commit 4574701

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/tty/vt/vt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4885,8 +4885,6 @@ static int con_font_set(struct vc_data *vc, const struct console_font_op *op)
48854885
int size;
48864886
unsigned int vpitch = op->op == KD_FONT_OP_SET_TALL ? op->height : 32;
48874887

4888-
if (vc->vc_mode != KD_TEXT)
4889-
return -EINVAL;
48904888
if (!op->data)
48914889
return -EINVAL;
48924890
if (op->charcount > max_font_glyphs)

0 commit comments

Comments
 (0)