aboutsummaryrefslogtreecommitdiff
path: root/libnetfs/file-get-children.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-24 17:42:10 +0200
committerJustus Winter <justus@gnupg.org>2017-08-24 23:22:24 +0200
commite493a6164cfe188a151b10f37a971bbfa67297cf (patch)
treea6ea6b5171971f80dc8f5f98ea43f4d26a9db03d /libnetfs/file-get-children.c
parent59dacf77dc0aa25dfda3b192ec099e7310d543d2 (diff)
downloadhurd-e493a6164cfe188a151b10f37a971bbfa67297cf.tar.gz
hurd-e493a6164cfe188a151b10f37a971bbfa67297cf.tar.bz2
hurd-e493a6164cfe188a151b10f37a971bbfa67297cf.zip
libnetfs: Remove redundant type checks.
* libnetfs/file-get-children.c (netfs_S_file_get_children): Drop redundant type checks. * libnetfs/file-get-source.c (netfs_S_file_get_source): Likewise.
Diffstat (limited to 'libnetfs/file-get-children.c')
-rw-r--r--libnetfs/file-get-children.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libnetfs/file-get-children.c b/libnetfs/file-get-children.c
index e8ceddf3..5a0ddf0e 100644
--- a/libnetfs/file-get-children.c
+++ b/libnetfs/file-get-children.c
@@ -33,9 +33,7 @@ netfs_S_file_get_children (struct protid *cred,
mach_msg_type_number_t *children_len)
{
error_t err;
- if (! cred
- || cred->pi.bucket != netfs_port_bucket
- || cred->pi.class != netfs_protid_class)
+ if (! cred)
return EOPNOTSUPP;
/* check_access performs the same permission check as is normally