aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2016-09-15 10:47:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-22 05:41:54 -0400
commit0bf1f4a8a399d2c8c0396b8cc0439f8d6ca3581b (patch)
tree7d27443bfa1daac9b61db3f31a81d5afe6be0b28 /drivers/tty/vt
parent669e0a51b1b50052b1615683cde64e1c28ae895f (diff)
vt: Make a comparison <= for readability.
All other uses of vc_npar are inclusive (save for < NPAR) which raises eyebrows, so let's at least do so consistently. Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index b51586fea4e8..52442ccf20c0 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1312,7 +1312,7 @@ static int vc_t416_color(struct vc_data *vc, int i,
1312 if (i > vc->vc_npar) 1312 if (i > vc->vc_npar)
1313 return i; 1313 return i;
1314 1314
1315 if (vc->vc_par[i] == 5 && i < vc->vc_npar) { 1315 if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) {
1316 /* 256 colours -- ubiquitous */ 1316 /* 256 colours -- ubiquitous */
1317 i++; 1317 i++;
1318 rgb_from_256(vc->vc_par[i], &c); 1318 rgb_from_256(vc->vc_par[i], &c);