diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-01-06 00:38:41 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-01-06 00:38:41 +0400 |
commit | 7a6ef8c72314f254c107c6a9ed7cb201961ee05a (patch) | |
tree | e66c90f2f1e8121764516c0d49c18e6d054de63c /fs/nfsd/nfs4recover.c | |
parent | 9b4146e85536ebd6b989f43906986e34486efdba (diff) | |
download | linux-7a6ef8c72314f254c107c6a9ed7cb201961ee05a.tar.xz |
nfsd4: nfsd4_create_clid_dir return value is unused
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index eb01fffdc2f1..a52f267f122a 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c @@ -117,8 +117,7 @@ out_no_tfm: return status; } -int -nfsd4_create_clid_dir(struct nfs4_client *clp) +void nfsd4_create_clid_dir(struct nfs4_client *clp) { const struct cred *original_cred; char *dname = clp->cl_recdir; @@ -128,13 +127,13 @@ nfsd4_create_clid_dir(struct nfs4_client *clp) dprintk("NFSD: nfsd4_create_clid_dir for \"%s\"\n", dname); if (clp->cl_firststate) - return 0; + return; clp->cl_firststate = 1; if (!rec_file) - return -ENOENT; + return; status = nfs4_save_creds(&original_cred); if (status < 0) - return status; + return; dir = rec_file->f_path.dentry; /* lock the parent */ @@ -172,7 +171,6 @@ out_unlock: " and is writeable", status, user_recovery_dirname); nfs4_reset_creds(original_cred); - return status; } typedef int (recdir_func)(struct dentry *, struct dentry *); |