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:
parent
8771c78a90
commit
fe4bb3901c
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue