summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-08-02 08:42:04 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2018-08-08 23:50:31 +0300
commit72bf75cfc00c02aa66ef6133048f37aa5d88825c (patch)
treeff660ced6756b9ebca5b61d5ff7d795b1ac39e0c /fs/nfs
parent10db5b7a2f44379f63c159a77456d4d22df53c51 (diff)
downloadlinux-72bf75cfc00c02aa66ef6133048f37aa5d88825c.tar.xz
NFSv4: Fix error handling in nfs4_sp4_select_mode()
Error code is set in the error handling cases but never used. Fix it. Fixes: 937e3133cd0b ("NFSv4.1: Ensure we clear the SP4_MACH_CRED flags in nfs4_sp4_select_mode()") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 68788f022461..124a9f97c366 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7793,7 +7793,7 @@ static int nfs4_sp4_select_mode(struct nfs_client *clp,
}
out:
clp->cl_sp4_flags = flags;
- return 0;
+ return ret;
}
struct nfs41_exchange_id_data {