]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: remove unnecessary test in rpc_task_set_client()
authorThiago Rafael Becker <trbecker@gmail.com>
Wed, 20 Oct 2021 21:04:28 +0000 (18:04 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:21 +0000 (19:51 +0100)
commit197b613c908051c2d98a0198bf26baffc387fb4f
tree5d756746cd459b5e2160e7adbe5b6e7a5060535c
parent7338c43777421b97900ac3c781bd02a89d150cf5
sunrpc: remove unnecessary test in rpc_task_set_client()

[ Upstream commit 023859ce6f88f7cfc223752fb56ec453a147b852 ]

In rpc_task_set_client(), testing for a NULL clnt is not necessary, as
clnt should always be a valid pointer to a rpc_client.

Signed-off-by: Thiago Rafael Becker <trbecker@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Stable-dep-of: 4db9ad82a6c8 ("sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/clnt.c