Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abfb6897 authored by Dan Carpenter's avatar Dan Carpenter Committed by Anna Schumaker
Browse files

xprtrdma: checking for NULL instead of IS_ERR()



The rpcrdma_create_req() function returns error pointers or success.  It
never returns NULL.

Fixes: f531a5db ('xprtrdma: Pre-allocate backward rpc_rqst and send/receive buffers')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 38b95bcf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -42,8 +42,8 @@ static int rpcrdma_bc_setup_rqst(struct rpcrdma_xprt *r_xprt,
	size_t size;

	req = rpcrdma_create_req(r_xprt);
	if (!req)
		return -ENOMEM;
	if (IS_ERR(req))
		return PTR_ERR(req);
	req->rl_backchannel = true;

	size = RPCRDMA_INLINE_WRITE_THRESHOLD(rqst);