ecore-drm: Don't exit tty setup if tty is already in graphics mode
authorChris Michael <cp.michael@samsung.com>
Fri, 30 Oct 2015 13:08:41 +0000 (09:08 -0400)
committerChris Michael <cp.michael@samsung.com>
Fri, 30 Oct 2015 13:28:10 +0000 (09:28 -0400)
Summary: If we go to setup a tty and it is already in graphics mode,
then there is no need to exit with a failed setup here. Instead, we
can actually continue to setup the tty.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_tty.c

index 40a0019f7195f3e2d4406b3b6c1f6eb5a96f6d33..bf057868a7a0aa3a6a7ea4b8ba909ff107b2a43e 100644 (file)
@@ -68,10 +68,7 @@ _ecore_drm_tty_setup(Ecore_Drm_Device *dev)
      }
 
    if (kmode != KD_TEXT)
-     {
-        WRN("Virtual Terminal already in KD_GRAPHICS mode");
-        return EINA_FALSE;
-     }
+     WRN("Virtual Terminal already in KD_GRAPHICS mode");
 
    if (ioctl(dev->tty.fd, VT_ACTIVATE, minor(st.st_rdev)) < 0)
      {