NFSv4: Fix error handling in nfs4_sp4_select_mode()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Aug 2018 05:42:04 +0000 (05:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:45:30 +0000 (09:45 +0200)
commita9fac97e2e5012fe1e784e2bda60bdb812fc8c43
tree047c05d344ee5f0577b39c92327e4917941491d9
parent8ac6b147534cb09addbcf6eff099e9b0bffe859a
NFSv4: Fix error handling in nfs4_sp4_select_mode()

[ Upstream commit 72bf75cfc00c02aa66ef6133048f37aa5d88825c ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c