[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
- [hurd] 21/43: startup: Fix retrieving the privileged ports., (continued)
- [hurd] 21/43: startup: Fix retrieving the privileged ports., Samuel Thibault, 2017/09/11
- [hurd] 25/43: eth-multiplexer: Implement getting the devices flags., Samuel Thibault, 2017/09/11
- [hurd] 20/43: ext2fs: Fix warning., Samuel Thibault, 2017/09/11
- [hurd] 18/43: Make build system more robust., Samuel Thibault, 2017/09/11
- [hurd] 14/43: procfs: Provide 'hostinfo'., Samuel Thibault, 2017/09/11
- [hurd] 23/43: startup: Improve error handling., Samuel Thibault, 2017/09/11
- [hurd] 28/43: eth-multiplexer: Allow setting of flags., Samuel Thibault, 2017/09/11
- [hurd] 33/43: libdiskfs: Use control class for the singleton 'bootinfo'., Samuel Thibault, 2017/09/11
- [hurd] 31/43: ext2fs: Improve inlining., Samuel Thibault, 2017/09/11
- [hurd] 08/43: trans/fakeroot: Obey O_NOFOLLOW., Samuel Thibault, 2017/09/11
- [hurd] 35/43: libnetfs: Remove redundant type checks.,
Samuel Thibault <=
- [hurd] 26/43: eth-multiplexer: Remove local definiton., Samuel Thibault, 2017/09/11
- [hurd] 34/43: libdiskfs: Simplify type checks., Samuel Thibault, 2017/09/11
- [hurd] 16/43: Simplify deallocations., Samuel Thibault, 2017/09/11
- [hurd] 29/43: eth-multiplexer: Respect interfaces up flags., Samuel Thibault, 2017/09/11
- [hurd] 36/43: startup: Don't spin on host_reboot failures., Samuel Thibault, 2017/09/11
- [hurd] 30/43: Drop the register qualifier., Samuel Thibault, 2017/09/11
- [hurd] 02/43: trans: New random translator., Samuel Thibault, 2017/09/11
- [hurd] 43/43: storeio: Avoid calling mmap with zero size, Samuel Thibault, 2017/09/11
- [hurd] 03/43: trans: Conditionally build the random translator., Samuel Thibault, 2017/09/11
- [hurd] 17/43: Replace bcopy with memcpy or memmove as appropriate., Samuel Thibault, 2017/09/11