IB/hfi1: checking for NULL instead of IS_ERR
authorDan Carpenter <[email protected]>
Wed, 16 Sep 2015 06:22:20 +0000 (09:22 +0300)
committerDoug Ledford <[email protected]>
Fri, 18 Sep 2015 15:28:47 +0000 (11:28 -0400)
commit50b19729ced72cfa8bb1c44fed9203f395f13991
tree58b03546dcd209e395713089beb881e69e1ddbdc
parentaeef010a0f63ad0a6f993d3da30753e9a8a39ec5
IB/hfi1: checking for NULL instead of IS_ERR

__get_txreq() returns an ERR_PTR() but this checks for NULL so it would
oops on failure.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/staging/rdma/hfi1/verbs.c