drm/kms: silencing a false positive warning.
authorMarin Mitov <mitov@issp.bas.bg>
Sun, 20 Dec 2009 07:03:27 +0000 (09:03 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Dec 2009 00:09:09 +0000 (10:09 +1000)
warning: 'width' may be used uninitialized in this function
drivers/gpu/drm/drm_edid.c

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index c39b26f1abed050aed19d27407d1890035bd17d9..5c9f79877cbf0a361111d2d16cccb6aee7b4483a 100644 (file)
@@ -913,7 +913,7 @@ static int drm_cvt_modes(struct drm_connector *connector,
        const int rates[] = { 60, 85, 75, 60, 50 };
 
        for (i = 0; i < 4; i++) {
-               int width, height;
+               int uninitialized_var(width), height;
                cvt = &(timing->data.other_data.data.cvt[i]);
 
                height = (cvt->code[0] + ((cvt->code[1] & 0xf0) << 8) + 1) * 2;