]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Oct 2021 22:09:55 +0000 (18:09 -0400)
commit0ed00ac7184509264d54336d02dce685bd5d45f0
tree9d1439d4cb5d0d06306e48d9642a289ee21cb77e
parent055749cc49905793028a922a2a21cc5422bc9e55
sunrpc: remove unnecessary test in rpc_task_set_client()

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>
net/sunrpc/clnt.c