From e493a6164cfe188a151b10f37a971bbfa67297cf Mon Sep 17 00:00:00 2001 From: Justus Winter <justus@gnupg.org> Date: Thu, 24 Aug 2017 17:42:10 +0200 Subject: 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-source.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libnetfs/file-get-source.c') diff --git a/libnetfs/file-get-source.c b/libnetfs/file-get-source.c index 8b73d5a1..7fa1b4f6 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 */); -- cgit v1.2.3