summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarin Mitov <mitov@issp.bas.bg>2009-12-20 09:03:27 +0200
committerDave Airlie <airlied@redhat.com>2009-12-23 10:09:09 +1000
commit29ebdf925c2c45f6531a953c6c5c8e4d3b4ac2dc (patch)
treed20cb6af4ee04a27ad49996cd7d8052beab0f2fb
parente2108eb1f66d77b4af77caf282cab1d47e3f4831 (diff)
downloadlinux-29ebdf925c2c45f6531a953c6c5c8e4d3b4ac2dc.tar.bz2
drm/kms: silencing a false positive warning.
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>
-rw-r--r--drivers/gpu/drm/drm_edid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index c39b26f1abed..5c9f79877cbf 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -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;