diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-10-30 09:08:41 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-10-30 09:28:10 -0400 |
commit | 4ef8750733086d000d63ff10ae28f945c5fa6e64 (patch) | |
tree | 4afbc57503ade9a5ba094075bb89b4ba61b68582 /src/lib/ecore_drm/ecore_drm_tty.c | |
parent | 329832bb801210b37e94c6419dfba1f01b1acabb (diff) |
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_tty.c')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_tty.c | 5 |
1 files changed, 1 insertions, 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) | |||
68 | } | 68 | } |
69 | 69 | ||
70 | if (kmode != KD_TEXT) | 70 | if (kmode != KD_TEXT) |
71 | { | 71 | WRN("Virtual Terminal already in KD_GRAPHICS mode"); |
72 | WRN("Virtual Terminal already in KD_GRAPHICS mode"); | ||
73 | return EINA_FALSE; | ||
74 | } | ||
75 | 72 | ||
76 | if (ioctl(dev->tty.fd, VT_ACTIVATE, minor(st.st_rdev)) < 0) | 73 | if (ioctl(dev->tty.fd, VT_ACTIVATE, minor(st.st_rdev)) < 0) |
77 | { | 74 | { |