Commit 72bf75cf authored by Wei Yongjun's avatar Wei Yongjun Committed by Anna Schumaker

NFSv4: Fix error handling in nfs4_sp4_select_mode()

Error code is set in the error handling cases but never used. Fix it.

Fixes: 937e3133 ("NFSv4.1: Ensure we clear the SP4_MACH_CRED flags in nfs4_sp4_select_mode()")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 10db5b7a
...@@ -7793,7 +7793,7 @@ static int nfs4_sp4_select_mode(struct nfs_client *clp, ...@@ -7793,7 +7793,7 @@ static int nfs4_sp4_select_mode(struct nfs_client *clp,
} }
out: out:
clp->cl_sp4_flags = flags; clp->cl_sp4_flags = flags;
return 0; return ret;
} }
struct nfs41_exchange_id_data { struct nfs41_exchange_id_data {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment