mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
tty/vt: consolemap: remove superfluous whitespace
There are still some remaining tabs/spaces at EOLs or spaces before tabs. Remove them all now. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220607104946.18710-32-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9ec9b79a2b
commit
d8d0d1758c
@ -220,7 +220,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedict *p,
|
|||||||
int j, glyph;
|
int j, glyph;
|
||||||
unsigned short *t = translations[m];
|
unsigned short *t = translations[m];
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
return;
|
return;
|
||||||
q = p->inverse_translations[m];
|
q = p->inverse_translations[m];
|
||||||
@ -236,7 +236,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedict *p,
|
|||||||
glyph = conv_uni_to_pc(conp, t[j]);
|
glyph = conv_uni_to_pc(conp, t[j]);
|
||||||
if (glyph >= 0 && glyph < MAX_GLYPH && q[glyph] < 32) {
|
if (glyph >= 0 && glyph < MAX_GLYPH && q[glyph] < 32) {
|
||||||
/* prefer '-' above SHY etc. */
|
/* prefer '-' above SHY etc. */
|
||||||
q[glyph] = j;
|
q[glyph] = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ static void update_user_maps(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct uni_pagedict *p, *q = NULL;
|
struct uni_pagedict *p, *q = NULL;
|
||||||
|
|
||||||
for (i = 0; i < MAX_NR_CONSOLES; i++) {
|
for (i = 0; i < MAX_NR_CONSOLES; i++) {
|
||||||
if (!vc_cons_allocated(i))
|
if (!vc_cons_allocated(i))
|
||||||
continue;
|
continue;
|
||||||
@ -403,7 +403,7 @@ int con_get_trans_new(ushort __user * arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unicode -> current font conversion
|
* Unicode -> current font conversion
|
||||||
*
|
*
|
||||||
* A font has at most 512 chars, usually 256.
|
* A font has at most 512 chars, usually 256.
|
||||||
* But one font position may represent several Unicode chars.
|
* But one font position may represent several Unicode chars.
|
||||||
@ -455,7 +455,7 @@ void con_free_unimap(struct vc_data *vc)
|
|||||||
con_release_unimap(p);
|
con_release_unimap(p);
|
||||||
kfree(p);
|
kfree(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int con_unify_unimap(struct vc_data *conp, struct uni_pagedict *dict1)
|
static int con_unify_unimap(struct vc_data *conp, struct uni_pagedict *dict1)
|
||||||
{
|
{
|
||||||
struct uni_pagedict *dict2;
|
struct uni_pagedict *dict2;
|
||||||
@ -688,7 +688,7 @@ out_unlock:
|
|||||||
* Loads the unimap for the hardware font, as defined in uni_hash.tbl.
|
* Loads the unimap for the hardware font, as defined in uni_hash.tbl.
|
||||||
* The representation used was the most compact I could come up
|
* The representation used was the most compact I could come up
|
||||||
* with. This routine is executed at video setup, and when the
|
* with. This routine is executed at video setup, and when the
|
||||||
* PIO_FONTRESET ioctl is called.
|
* PIO_FONTRESET ioctl is called.
|
||||||
*
|
*
|
||||||
* The caller must hold the console lock
|
* The caller must hold the console lock
|
||||||
*/
|
*/
|
||||||
@ -893,11 +893,11 @@ int conv_uni_to_pc(struct vc_data *conp, long ucs)
|
|||||||
* initialized. It must be possible to call kmalloc(..., GFP_KERNEL)
|
* initialized. It must be possible to call kmalloc(..., GFP_KERNEL)
|
||||||
* from this function, hence the call from sys_setup.
|
* from this function, hence the call from sys_setup.
|
||||||
*/
|
*/
|
||||||
void __init
|
void __init
|
||||||
console_map_init(void)
|
console_map_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < MAX_NR_CONSOLES; i++)
|
for (i = 0; i < MAX_NR_CONSOLES; i++)
|
||||||
if (vc_cons_allocated(i) && !*vc_cons[i].d->vc_uni_pagedir_loc)
|
if (vc_cons_allocated(i) && !*vc_cons[i].d->vc_uni_pagedir_loc)
|
||||||
con_set_default_unimap(vc_cons[i].d);
|
con_set_default_unimap(vc_cons[i].d);
|
||||||
|
Loading…
Reference in New Issue
Block a user