video: fbdev: via: remove VLA usage
[sfrench/cifs-2.6.git] / drivers / video / fbdev / via / via_aux_vt1636.c
index 9e015c101d4db7c6e3af198e6c00327a9a780515..2b10bc21ab79e80d525e11513c7f09aa268b2b8f 100644 (file)
@@ -36,7 +36,7 @@ void via_aux_vt1636_probe(struct via_aux_bus *bus)
                .name   =       name};
        /* check vendor id and device id */
        const u8 id[] = {0x06, 0x11, 0x45, 0x33}, len = ARRAY_SIZE(id);
-       u8 tmp[len];
+       u8 tmp[ARRAY_SIZE(id)];
 
        if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len))
                return;