From fb861fc2364bcfd57c88b7b6e3253f1f477ca154 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Thu, 4 Sep 2014 09:43:53 +0200 Subject: [PATCH] ecore-drm: Remove duplicated tty fd check Summary: No need to check tty fd again as we just did that. Remove this and adjust indent. Test Plan: N/A Reviewers: devilhorns, stefan_schmidt, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1407 --- src/lib/ecore_drm/ecore_drm_tty.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/ecore_drm/ecore_drm_tty.c b/src/lib/ecore_drm/ecore_drm_tty.c index 1bc7ffffe4..f4a4d30870 100644 --- a/src/lib/ecore_drm/ecore_drm_tty.c +++ b/src/lib/ecore_drm/ecore_drm_tty.c @@ -198,15 +198,9 @@ ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name) } } - if (dev->tty.fd < 0) - { - DBG("Failed to open tty %s", tty); - return EINA_FALSE; - } - DBG("Opened Tty %s : %d", tty, dev->tty.fd); - /* save tty name */ + /* save tty name */ dev->tty.name = eina_stringshare_add(tty); /* FIXME */