aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-04 21:02:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-04 21:02:12 +0900
commitf021031e7c3f50ecee22e420d11e58d2f453a6df (patch)
treeef7f846d10c692b5abc078dfac18f4e30777d5d2
parentecore - x vsync - whitelies only intel drm driver (diff)
downloadefl-f021031e7c3f50ecee22e420d11e58d2f453a6df.tar.gz
efl 1.11 - remove ok dup var warning
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c3
1 files changed, 1 insertions, 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 36400fb80b..f68efb2151 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -385,8 +385,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)
{
@@ -403,6 +401,7 @@ _drm_init(void)
}
if (!ok) return 0;
}
+ ok = EINA_FALSE;
snprintf(buf, sizeof(buf), "/dev/dri/card1");
if (stat(buf, &st) == 0)