summaryrefslogtreecommitdiff
path: root/drivers
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 /drivers
parente2108eb1f66d77b4af77caf282cab1d47e3f4831 (diff)
downloadlinux-3.10-29ebdf925c2c45f6531a953c6c5c8e4d3b4ac2dc.tar.gz
linux-3.10-29ebdf925c2c45f6531a953c6c5c8e4d3b4ac2dc.tar.bz2
linux-3.10-29ebdf925c2c45f6531a953c6c5c8e4d3b4ac2dc.zip
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>
Diffstat (limited to 'drivers')
-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 c39b26f1abe..5c9f79877cb 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;