ecore-drm: remove unnecessary setting file's flag of O_RDWR that are ignored.

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
This commit is contained in:
Seunghun Lee 2014-11-26 08:59:30 -05:00 committed by Chris Michael
parent 8771c78a90
commit fe4bb3901c
1 changed files with 0 additions and 14 deletions

View 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");