[PATCH 21/30] xfree86/modes: Stop setting best_crtc for nothing.
Cyril Brulebois
kibi at debian.org
Fri May 20 08:35:31 PDT 2011
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
hw/xfree86/modes/xf86Crtc.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index c2814d4..b3badf4 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -938,7 +938,6 @@ xf86PickCrtcs (ScrnInfoPtr scrn,
xf86OutputPtr output;
xf86CrtcPtr crtc;
xf86CrtcPtr *crtcs;
- xf86CrtcPtr best_crtc;
int best_score;
int score;
int my_score;
@@ -951,7 +950,6 @@ xf86PickCrtcs (ScrnInfoPtr scrn,
* Compute score with this output disabled
*/
best_crtcs[n] = NULL;
- best_crtc = NULL;
best_score = xf86PickCrtcs (scrn, best_crtcs, modes, n+1, width, height);
if (modes[n] == NULL)
return best_score;
@@ -1007,7 +1005,6 @@ xf86PickCrtcs (ScrnInfoPtr scrn,
score = my_score + xf86PickCrtcs (scrn, crtcs, modes, n+1, width, height);
if (score > best_score)
{
- best_crtc = crtc;
best_score = score;
memcpy (best_crtcs, crtcs, config->num_output * sizeof (xf86CrtcPtr));
}
--
1.7.5.1
More information about the xorg-devel
mailing list