diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-06-07 12:49:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-10 13:37:02 +0200 |
commit | cb47d81f0f0fa293e18fe8828715a6509f480b3f (patch) | |
tree | 9c96a6ea0b7746a6a8cc27a0629862feb2d6841d /drivers/tty/vt/consolemap.c | |
parent | 6364d391363a0ac498a852ff4bec32d82e913ee8 (diff) | |
download | linux-cb47d81f0f0fa293e18fe8828715a6509f480b3f.tar.gz linux-cb47d81f0f0fa293e18fe8828715a6509f480b3f.tar.bz2 linux-cb47d81f0f0fa293e18fe8828715a6509f480b3f.zip |
tty/vt: consolemap: make p1 increment less confusing in con_get_unimap()
p2 is already incremented like this few lines below, so do the same for
p1. This makes the code easier to follow.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220607104946.18710-15-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/consolemap.c')
-rw-r--r-- | drivers/tty/vt/consolemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c index 84c8043a36d0..831450f2bfd1 100644 --- a/drivers/tty/vt/consolemap.c +++ b/drivers/tty/vt/consolemap.c @@ -793,8 +793,8 @@ int con_get_unimap(struct vc_data *vc, ushort ct, ushort __user *uct, if (!p1) continue; - for (j = 0; j < UNI_DIR_ROWS; j++) { - p2 = *(p1++); + for (j = 0; j < UNI_DIR_ROWS; j++, p1++) { + p2 = *p1; if (!p2) continue; |