From 4ef8750733086d000d63ff10ae28f945c5fa6e64 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 30 Oct 2015 09:08:41 -0400 Subject: [PATCH] ecore-drm: Don't exit tty setup if tty is already in graphics mode 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 --- src/lib/ecore_drm/ecore_drm_tty.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c index 40a0019f71..bf057868a7 100644 --- a/src/lib/ecore_drm/ecore_drm_tty.c +++ b/src/lib/ecore_drm/ecore_drm_tty.c @@ -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) {