SUNRPC: Remove unreachable error condition in rpcb_getport_async()
authorXiyu Yang <xiyuyang19@fudan.edu.cn>
Mon, 25 May 2020 14:17:02 +0000 (22:17 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 28 May 2020 22:15:00 +0000 (18:15 -0400)
commit037e910b52b04fbd41990f643dff97c7e43b0e47
treeb96d1760d43c77b4364360c4899d7427e4656555
parenta4abc6b12eb1f7a533c2e7484cfa555454ff0977
SUNRPC: Remove unreachable error condition in rpcb_getport_async()

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

Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/rpcb_clnt.c