drm/rockchip: fix some warning from smatch check
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / rockchip / rockchip_lvds.c
index e0eb524d0205351015f6ae325031fd90b1948135..aa0c49a3b90d018ac1fcfe67cba25188c2ba74e0 100644 (file)
@@ -85,7 +85,7 @@ static inline int lvds_name_to_format(const char *s)
 
        if (strncmp(s, "jeida", 6) == 0)
                return LVDS_FORMAT_JEIDA;
-       else if (strncmp(s, "vesa", 6) == 0)
+       else if (strncmp(s, "vesa", 5) == 0)
                return LVDS_FORMAT_VESA;
 
        return -EINVAL;