summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_launcher.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-12-09 09:52:24 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-09 09:52:24 -0500
commit29856509bf4c34e65557836b2c47b637ff17f055 (patch)
tree303c43b165edfdaaa6bae6a9670c3ee9e70e6ce4 /src/lib/ecore_drm/ecore_drm_launcher.c
parent9f0e5ae57cd8f16c4ca6e6992d527ea6574bee9c (diff)
ecore-drm: Fix formatting
Summary: No functional changes, just fixing formatting @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_launcher.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_launcher.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_launcher.c b/src/lib/ecore_drm/ecore_drm_launcher.c
index 66c1783548..8aab76cd64 100644
--- a/src/lib/ecore_drm/ecore_drm_launcher.c
+++ b/src/lib/ecore_drm/ecore_drm_launcher.c
@@ -38,9 +38,7 @@ ecore_drm_launcher_disconnect(Ecore_Drm_Device *dev)
38 _ecore_drm_logind_disconnect(dev); 38 _ecore_drm_logind_disconnect(dev);
39 } 39 }
40 else 40 else
41 { 41 ecore_drm_tty_close(dev);
42 ecore_drm_tty_close(dev);
43 }
44} 42}
45 43
46static int 44static int
@@ -49,8 +47,7 @@ _device_flags_set(int fd, int flags)
49 int fl; 47 int fl;
50 48
51 fl = fcntl(fd, F_GETFL); 49 fl = fcntl(fd, F_GETFL);
52 if (fl < 0) 50 if (fl < 0) return -1;
53 return -1;
54 51
55 if (flags & O_NONBLOCK) 52 if (flags & O_NONBLOCK)
56 fl |= O_NONBLOCK; 53 fl |= O_NONBLOCK;
@@ -59,8 +56,7 @@ _device_flags_set(int fd, int flags)
59 return -1; 56 return -1;
60 57
61 fl = fcntl(fd, F_GETFD); 58 fl = fcntl(fd, F_GETFD);
62 if (fl < 0) 59 if (fl < 0) return -1;
63 return -1;
64 60
65 if (!(flags & O_CLOEXEC)) 61 if (!(flags & O_CLOEXEC))
66 fl &= ~FD_CLOEXEC; 62 fl &= ~FD_CLOEXEC;