Skip to content

Commit

Permalink
drm: fix useless gcc unused variable warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
airlied committed Dec 29, 2008
1 parent bdf539a commit f890607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f890607

Please sign in to comment.