summaryrefslogtreecommitdiff
path: root/libnetfs/file-check-access.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-15 16:50:50 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-15 16:50:50 +0000
commit3ef14dc5033bcb02d48d8d842bac760ea2fd0cf1 (patch)
tree18a4977b3b1cc747e012e8aaa52c21a3e6b1e8ee /libnetfs/file-check-access.c
parent33539520d2e6b3789d2354c651b6e8a12ff21edd (diff)
entered into RCS
Diffstat (limited to 'libnetfs/file-check-access.c')
-rw-r--r--libnetfs/file-check-access.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libnetfs/file-check-access.c b/libnetfs/file-check-access.c
index 25a5963c..bd14f1e2 100644
--- a/libnetfs/file-check-access.c
+++ b/libnetfs/file-check-access.c
@@ -25,13 +25,11 @@ error_t
netfs_S_file_check_access (struct protid *user,
int *types)
{
- error_t err;
-
if (!user)
return EOPNOTSUPP;
mutex_lock (&user->po->np->lock);
- err = netfs_report_access (user->credential, user->po->np, types);
+ netfs_report_access (user->credential, user->po->np, types);
mutex_unlock (&user->po->np->lock);
- return err;
+ return 0;
}