linux_dsm_epyc7002/drivers/infiniband/hw/usnic
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
..
Kconfig IB/usnic: Add dependency on CONFIG_INET 2014-01-18 13:48:54 -08:00
Makefile IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_abi.h IB/usnic: Set userspace/kernel ABI ver to 4 2014-01-18 13:48:54 -08:00
usnic_common_pkt_hdr.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_common_util.h IB/usnic: Fix endianness-related warnings 2014-01-18 13:48:54 -08:00
usnic_debugfs.c IB/usnic: Remove unused variable in usnic_debugfs_exit() 2014-01-18 13:50:14 -08:00
usnic_debugfs.h IB/usnic: Expose flows via debugfs 2014-01-14 00:44:46 -08:00
usnic_fwd.c IB/usnic: Add UDP support to usnic_fwd.[hc] 2014-01-14 00:44:43 -08:00
usnic_fwd.h IB/usnic: Add UDP support to usnic_fwd.[hc] 2014-01-14 00:44:43 -08:00
usnic_ib_main.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
usnic_ib_qp_grp.c treewide: Fix typo in printk 2014-08-26 09:35:54 +02:00
usnic_ib_qp_grp.h IB/usnic: Expose flows via debugfs 2014-01-14 00:44:46 -08:00
usnic_ib_sysfs.c IB/usnic: Expose flows via debugfs 2014-01-14 00:44:46 -08:00
usnic_ib_sysfs.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_ib_verbs.c IB: Return error for unsupported QP creation flags 2014-06-02 14:58:11 -07:00
usnic_ib_verbs.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_ib.h IB/usnic: Remove unused includes of <linux/version.h> 2014-01-22 23:05:51 -08:00
usnic_log.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_transport.c IB/usnic: Fix endianness-related warnings 2014-01-18 13:48:54 -08:00
usnic_transport.h IB/usnic: Append documentation to usnic_transport.h and cleanup 2014-01-14 00:51:00 -08:00
usnic_uiom_interval_tree.c IB/usnic: Fix source file missing copyright and license 2014-05-27 13:24:40 -07:00
usnic_uiom_interval_tree.h IB/usnic: Remove unused includes of <linux/version.h> 2014-01-22 23:05:51 -08:00
usnic_uiom.c IB/usnic: clean up some error handling code 2015-06-11 01:11:27 -04:00
usnic_uiom.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_vnic.c IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic_vnic.h IB/usnic: Add Cisco VIC low-level hardware driver 2014-01-14 00:44:28 -08:00
usnic.h IB/usnic: Update ABI and Version file for UDP support 2014-01-14 00:44:43 -08:00