linux/drivers/infiniband/hw
Dan Carpenter fc3aa45b63 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>
2015-06-11 01:11:27 -04:00
..
amso1100 IB/core: Replace ib_umem's offset field with a full address 2014-12-15 18:13:35 -08:00
cxgb3 RDMA/cxgb3: Remove a couple unneeded conditions 2014-05-28 10:04:00 -07:00
cxgb4 infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses 2015-05-12 15:52:37 -04:00
ehca IB/ehca: use correct destination for memcpy 2015-05-11 17:14:37 -04:00
ipath VFS: assorted weird filesystems: d_inode() annotations 2015-04-15 15:06:58 -04:00
mlx4 IB/mlx4: Fix error paths in mlx4_ib_create_flow() 2015-06-02 09:22:31 -04:00
mlx5 infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses 2015-05-12 15:52:37 -04:00
mthca IB/mthca: use swap() in mthca_make_profile() 2015-06-11 01:10:59 -04:00
nes RDMA/nes: Enable the use of the tos field in the nes driver 2015-06-02 09:22:31 -04:00
ocrdma RDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd() 2015-06-02 09:22:31 -04:00
qib IB/qib: fix test of unsigned variable 2015-05-12 13:55:41 -04:00
usnic IB/usnic: clean up some error handling code 2015-06-11 01:11:27 -04:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00