Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f890607b authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

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: default avatarDave Airlie <airlied@redhat.com>
parent bdf539ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;