]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Nov 2015 08:39:52 +0000 (11:39 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 18 Dec 2015 20:34:33 +0000 (15:34 -0500)
commit390968c42df1ffabc258031d0d7dd8a9d75b67b5
treee1f39a31fd6b8115f7202de5c7ee97dd9b890028
parent2f2eb3caf23125b23b505233b73a41b4f7408280
xprtrdma: checking for NULL instead of IS_ERR()

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

Fixes: 9ab9a12b0956 ('xprtrdma: Pre-allocate backward rpc_rqst and send/receive buffers')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c