RDMA/bnxt_re: Use IS_ERR_OR_NULL where appropriate
authorDoug Ledford <dledford@redhat.com>
Tue, 25 Apr 2017 18:00:59 +0000 (14:00 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 25 Apr 2017 18:00:59 +0000 (14:00 -0400)
commit374cb8610ac15737acb65ca0293c21dc2205662b
tree46a68d33d152c739fcd6a000e88b4794a601a21d
parentebbd1dfb2620fb95e1d850286c80068766222276
RDMA/bnxt_re: Use IS_ERR_OR_NULL where appropriate

Constructs such as if (ptr && !IS_ERR(ptr)) can be shorted to
just !IS_ERR_OR_NULL(ptr) instead.  Make substitutions in the bnxt_re
driver where appropriate.

Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c