aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-12-18 16:59:02 +1000
committerDave Airlie <airlied@linux.ie>2008-12-29 17:47:24 +1000
commitf890607b1e93dc6fdc2a42b60656c917adf6257f (patch)
tree26decb583db33e0f7257e4b123ecdeb5026484a9 /drivers/gpu
parentbdf539ad61a8d4d0f0b0865c030a8ecb1ec2a398 (diff)
downloadkernel_samsung_crespo-f890607b1e93dc6fdc2a42b60656c917adf6257f.zip
kernel_samsung_crespo-f890607b1e93dc6fdc2a42b60656c917adf6257f.tar.gz
kernel_samsung_crespo-f890607b1e93dc6fdc2a42b60656c917adf6257f.tar.bz2
drm: fix useless gcc unused variable warning
the calling function doesn't call this function unless one of the two states that sets the value is true. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-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 681753e..0fbb0da 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -205,7 +205,7 @@ static void edid_fixup_preferred(struct drm_connector *connector,
u32 quirks)
{
struct drm_display_mode *t, *cur_mode, *preferred_mode;
- int target_refresh;
+ int target_refresh = 0;
if (list_empty(&connector->probed_modes))
return;