]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/tty/vt/vt.c
vt: Make a comparison <= for readability.
[mirror_ubuntu-bionic-kernel.git] / drivers / tty / vt / vt.c
index b51586fea4e84b11fea1f58b05ab1b2f3f67095a..52442ccf20c0a3514f8e060e00f05c759206261c 100644 (file)
@@ -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);