sunrpc: xprtrdma: Use ERR_CAST() to return
authorYan Zhen <yanzhen@vivo.com>
Fri, 30 Aug 2024 01:43:56 +0000 (09:43 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commitaeddf8e6c5662d60d434ce59f7e08ea020162323
tree06e01214b2824c799b8478304302cf392d50e757
parent2869b3a00e202ee8d3d90ab7d88f4057c4bb3135
sunrpc: xprtrdma: Use ERR_CAST() to return

Using ERR_CAST() is more reasonable and safer, When it is necessary
to convert the type of an error pointer and return it.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c