]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Remove unreachable error condition
authorXiyu Yang <xiyuyang19@fudan.edu.cn>
Mon, 20 Apr 2020 15:14:19 +0000 (23:14 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 21 Apr 2020 23:11:59 +0000 (19:11 -0400)
commit5c7e5f2edc758c6fe2552c2b849c25aecf3ffc3b
tree14724cd0203cf9f4dbac9a5435975bbe83a35042
parenta08ed0e9becf63b9db38256b0cb905dbb661dd3c
SUNRPC: Remove unreachable error condition

rpc_clnt_test_and_add_xprt() invokes rpc_call_null_helper(), which
return the value of rpc_run_task() to "task". Since rpc_run_task() is
impossible to return an ERR pointer, there is no need to add the
IS_ERR() condition on "task" here. So we need to remove it.

Fixes: d9c52c3897b6 ("SUNRPC: Allow addition of new transports to a struct rpc_clnt")
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c