diff options
Diffstat (limited to 'trans/null.c')
-rw-r--r-- | trans/null.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/trans/null.c b/trans/null.c index bd082dc8..92717ed8 100644 --- a/trans/null.c +++ b/trans/null.c @@ -204,11 +204,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, { if (!cred) return EOPNOTSUPP; - else if (((*type & SELECT_READ) && !(cred->po->openmodes & O_READ)) - || ((*type & SELECT_WRITE) && !(cred->po->openmodes & O_WRITE))) - return EBADF; - else - *type &= ~SELECT_URG; + *type &= ~SELECT_URG; return 0; } |