summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-04 12:02:18 +0300
committerDoug Ledford <dledford@redhat.com>2015-06-11 08:11:27 +0300
commitfc3aa45b63101a11859e171aed9622d35cb02d16 (patch)
tree800d096e0a45c2f043ccc56d1bdf4e0547830d7c /drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
parented0de4a8c9dd6922a55226780b3d55dd751ad878 (diff)
downloadlinux-fc3aa45b63101a11859e171aed9622d35cb02d16.tar.xz
IB/usnic: clean up some error handling code
This code causes a static checker warning: drivers/infiniband/hw/usnic/usnic_uiom.c:476 usnic_uiom_alloc_pd() warn: passing zero to 'PTR_ERR' This code isn't buggy, but iommu_domain_alloc() doesn't return an error pointer so we can simplify the error handling and silence the static checker warning. The static checker warning is to catch place which do: if (!ptr) return ERR_PTR(ptr); Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Dave Goodell <dgoodell@cisco.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_verbs.c')
0 files changed, 0 insertions, 0 deletions