commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 35/43: libnetfs: Remove redundant type checks.


From: Samuel Thibault
Subject: [hurd] 35/43: libnetfs: Remove redundant type checks.
Date: Mon, 11 Sep 2017 07:10:12 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit e493a6164cfe188a151b10f37a971bbfa67297cf
Author: Justus Winter <address@hidden>
Date:   Thu Aug 24 17:42:10 2017 +0200

    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.
---
 libnetfs/file-get-children.c | 4 +---
 libnetfs/file-get-source.c   | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/libnetfs/file-get-children.c b/libnetfs/file-get-children.c
index e8ceddf..5a0ddf0 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
diff --git a/libnetfs/file-get-source.c b/libnetfs/file-get-source.c
index 8b73d5a..7fa1b4f 100644
--- a/libnetfs/file-get-source.c
+++ b/libnetfs/file-get-source.c
@@ -28,9 +28,7 @@ error_t
 netfs_S_file_get_source (struct protid *cred,
                         char *source)
 {
-  if (! cred
-      || cred->pi.bucket != netfs_port_bucket
-      || cred->pi.class != netfs_protid_class)
+  if (! cred)
     return EOPNOTSUPP;
 
   return netfs_get_source (cred, source, 1024 /* XXX */);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]