diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-06-14 12:05:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-27 15:17:11 +0300 |
commit | 43e1d0776840b05c356c78a0c5c7d544af07a6a4 (patch) | |
tree | 3c027e51299e76bdd20c6a4a68708cd18fa67c7f | |
parent | 139f39be42fcd5f88366d6f3e6f05002027d3514 (diff) | |
download | linux-43e1d0776840b05c356c78a0c5c7d544af07a6a4.tar.xz |
tty/vt: consolemap: remove unused parameter from set_inverse_trans_unicode()
conp is unused in set_inverse_trans_unicode(), remove it.
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-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/vt/consolemap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c index 2039237b5266..c5f5fa39d7b2 100644 --- a/drivers/tty/vt/consolemap.c +++ b/drivers/tty/vt/consolemap.c @@ -241,8 +241,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedict *p, } } -static void set_inverse_trans_unicode(struct vc_data *conp, - struct uni_pagedict *p) +static void set_inverse_trans_unicode(struct uni_pagedict *p) { unsigned int d, r, g; u16 *inv; @@ -327,7 +326,7 @@ static void update_user_maps(void) p = *vc_cons[i].d->vc_uni_pagedir_loc; if (p && p != q) { set_inverse_transl(vc_cons[i].d, p, USER_MAP); - set_inverse_trans_unicode(vc_cons[i].d, p); + set_inverse_trans_unicode(p); q = p; } } @@ -678,7 +677,7 @@ int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list) for (enum translation_map m = FIRST_MAP; m <= LAST_MAP; m++) set_inverse_transl(vc, dict, m); - set_inverse_trans_unicode(vc, dict); + set_inverse_trans_unicode(dict); out_unlock: console_unlock(); @@ -741,7 +740,7 @@ int con_set_default_unimap(struct vc_data *vc) for (enum translation_map m = FIRST_MAP; m <= LAST_MAP; m++) set_inverse_transl(vc, dict, m); - set_inverse_trans_unicode(vc, dict); + set_inverse_trans_unicode(dict); dflt = dict; return err; } |