Skip to content

Commit

Permalink
NFSv4: Fix error handling in nfs4_sp4_select_mode()
Browse files Browse the repository at this point in the history
Error code is set in the error handling cases but never used. Fix it.

Fixes: 937e313 ("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>
  • Loading branch information
Wei Yongjun authored and Anna Schumaker committed Aug 8, 2018
1 parent 10db5b7 commit 72bf75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72bf75c

Please sign in to comment.