vt: avoid pointless signed maths
authorAlan Cox <alan@linux.intel.com>
Sat, 2 Jun 2018 19:16:56 +0000 (20:16 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 2 Jun 2018 19:16:56 +0000 (20:16 +0100)
Kernel/vt.c

index 36a0b42..68d7628 100644 (file)
@@ -6,7 +6,6 @@
 
 
 #include <devtty.h>
-
 /*
  *     Mini vt52 terminal emulation
  *
@@ -116,7 +115,7 @@ static void charout(unsigned char c)
        if (c == 9) {
                do {
                        charout(' ');
-               } while (cursorx%8);
+               } while (cursorx&7);
                goto fix;
        }
        if (c == 10) {