From edcee427fd22a1639f49ce12a505c6e471d89e08 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 4 Sep 2014 13:16:30 +0200 Subject: [PATCH] ecore_x_vsync: Remove ahadowign variable. Also make sure we reset ok to FALSE here to keep the logic below correct. This was actually a vlaid local shadow problem. --- src/lib/ecore_x/xlib/ecore_x_vsync.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c index fbf011d30d..59a9231d88 100644 --- a/src/lib/ecore_x/xlib/ecore_x_vsync.c +++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c @@ -396,8 +396,6 @@ _drm_init(void) // only do this on new kernels = let's say 3.14 and up. 3.16 definitely // works { - Eina_Bool ok = EINA_FALSE; - FILE *fp = fopen("/proc/sys/kernel/osrelease", "r"); if (fp) { @@ -414,6 +412,7 @@ _drm_init(void) } if (!ok) return 0; } + ok = EINA_FALSE; snprintf(buf, sizeof(buf), "/dev/dri/card1"); if (stat(buf, &st) == 0)