From: Adam Borowski Date: Thu, 15 Sep 2016 14:47:10 +0000 (+0200) Subject: vt: Make a comparison <= for readability. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0bf1f4a8a399d2c8c0396b8cc0439f8d6ca3581b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, if (i > vc->vc_npar) return i; - if (vc->vc_par[i] == 5 && i < vc->vc_npar) { + if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) { /* 256 colours -- ubiquitous */ i++; rgb_from_256(vc->vc_par[i], &c);