RDMA/ocrdma: Fix check for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 May 2012 06:13:57 +0000 (09:13 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 8 May 2012 18:17:49 +0000 (11:17 -0700)
commit55a8d62a3bd2a0536d526da817fd4f49e6470770
tree3462e6a0fe6833b9e85b891ef6c5ead5f097bbe5
parent3e4d60a82e7ab4cd6e212b6834c6a48c79731957
RDMA/ocrdma: Fix check for NULL instead of IS_ERR

The ocrdma_alloc_lkey() function never returns NULL pointers -- it
returns ERR_PTRs.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c