[PATCH 25/30] xfree86/modes: Stop setting v_field_rate for nothing.

Cyril Brulebois kibi at debian.org
Fri May 20 08:35:35 PDT 2011


Seen as a consequence of the previous commit, the only use of that
variable is gone.

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 hw/xfree86/modes/xf86gtf.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/hw/xfree86/modes/xf86gtf.c b/hw/xfree86/modes/xf86gtf.c
index f61c18c..db88a1e 100644
--- a/hw/xfree86/modes/xf86gtf.c
+++ b/hw/xfree86/modes/xf86gtf.c
@@ -118,7 +118,6 @@ xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins)
     float total_v_lines;
     float v_field_rate_est;
     float h_period;
-    float v_field_rate;
     float left_margin;
     float right_margin;
     float total_active_pixels;
@@ -232,12 +231,7 @@ xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins)
 
     h_period = h_period_est / (v_field_rate_rqd / v_field_rate_est);
     
-    /*  13. Find the actual Vertical field frequency:
-     *
-     *  [V FIELD RATE] = 1 / [H PERIOD] / [TOTAL V LINES] * 1000000
-     */
-
-    v_field_rate = 1.0 / h_period / total_v_lines * 1000000.0;
+    /*  13. Find the actual Vertical field frequency [useless, removed] */
 
     /*  14. Find the Vertical frame frequency [useless, removed] */
 
-- 
1.7.5.1



More information about the xorg-devel mailing list