]> git.baikalelectronics.ru Git - kernel.git/commit
tty/vt: consolemap: use ARRAY_SIZE()
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:11 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:00 +0000 (13:37 +0200)
commit11693f7641be1cf75fa72e3d495e8ab65cd356ef
treeca6dafd2c2037bfb1b425eb18702df33069daeaa
parent9d9f97a255e4765b1f57cedd2eb4c5725392f0b2
tty/vt: consolemap: use ARRAY_SIZE()

The code uses constants as bounds in loops. Use ARRAY_SIZE() with
appropriate parameters instead. This makes the loop bounds obvious.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220607104946.18710-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c