]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb8c516efbb6b25e538e2d40499c5368099d7228
tree46a68d33d152c739fcd6a000e88b4794a601a21d
parentb5fcad1c9289566989f4a822d656552c7c509381
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