]> git.baikalelectronics.ru Git - kernel.git/commit
tty/vt: consolemap: saner variable names in set_inverse_transl()
authorJiri Slaby <jslaby@suse.cz>
Tue, 14 Jun 2022 09:05:33 +0000 (11:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:17:12 +0000 (14:17 +0200)
commit2d7d76002076f8b8a799940f765f4e1b67621119
tree4344cc50de5d5891e5eee8185c52859d6163d78b
parentdae411a832af8a4bfd3ba68ab1598bbe76197458
tty/vt: consolemap: saner variable names in set_inverse_transl()

The function uses too vague variable names like i, j, k for iterators, p,
q, p1, p2 for pointers etc.

Rename all these, so that it is clear what is going on:
- dict: for dictionaries.
- d, r, g: for dir, row, glyph iterators -- these are unsigned now.
- dir, row: for directory and row pointers.
- glyph: for the glyph.
- and so on...

This is a lot of shuffling, but the result pays off, IMO.

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-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c