]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6867fa9deadfd820706345b7ec53d221e8a33fcc
treeb96d1760d43c77b4364360c4899d7427e4656555
parent29c16c9b2afb8cf71d74642452f45939a64cdb79
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