ecore-drm: remove unnecessary setting file's flag of O_RDWR that are ignored.
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 26 Nov 2014 13:59:30 +0000 (08:59 -0500)
committerChris Michael <cp.michael@samsung.com>
Wed, 26 Nov 2014 13:59:41 +0000 (08:59 -0500)
Summary: setting flag of O_RDWR by F_SETFL is no effect. it's ignored.

@fix

Reviewers: gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1695

src/lib/ecore_drm/ecore_drm_inputs.c

index 9a1dcdf..f03af36 100644 (file)
@@ -24,20 +24,6 @@ _device_flags_set(int fd)
         return -1;
      }
 
-   if ((fl = fcntl(fd, F_GETFL)) < 0)
-     {
-        ERR("Failed to get file flags: %m");
-        goto flag_err;
-     }
-
-   fl = (O_RDWR | O_NONBLOCK);
-
-   if ((ret = fcntl(fd, F_SETFL, fl)) < 0)
-     {
-        ERR("Failed to set file flags: %m");
-        goto flag_err;
-     }
-
    if ((fl = fcntl(fd, F_GETFD)) < 0)
      {
         ERR("Failed to get file fd: %m");