drivers/video/console/fbcon_cw.c: fix compiler warning in cw_update_attr
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / drivers / video / console / fbcon_cw.c
index 6a737827beb1ca247ec54cbc8dde9536b876ba0b..a93670ef7f89ea03fa1bd59ec64636d4b755f4a8 100644 (file)
@@ -27,7 +27,7 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute,
 {
        int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2;
        int width = (vc->vc_font.height + 7) >> 3;
-       u8 c, t = 0, msk = ~(0xff >> offset);
+       u8 c, msk = ~(0xff >> offset);
 
        for (i = 0; i < vc->vc_font.width; i++) {
                for (j = 0; j < width; j++) {
@@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute,
                                c = ~c;
                        src++;
                        *dst++ = c;
-                       t = c;
                }
        }
 }