mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
ACPI: scan: Use standard error checking pattern
Check for an error and return it as it's the usual way to handle this. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e80d4122df
commit
602401e328
|
|
@ -1581,12 +1581,13 @@ int acpi_iommu_fwspec_init(struct device *dev, u32 id,
|
|||
struct fwnode_handle *fwnode,
|
||||
const struct iommu_ops *ops)
|
||||
{
|
||||
int ret = iommu_fwspec_init(dev, fwnode, ops);
|
||||
int ret;
|
||||
|
||||
if (!ret)
|
||||
ret = iommu_fwspec_add_ids(dev, &id, 1);
|
||||
ret = iommu_fwspec_init(dev, fwnode, ops);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return iommu_fwspec_add_ids(dev, &id, 1);
|
||||
}
|
||||
|
||||
static inline const struct iommu_ops *acpi_iommu_fwspec_ops(struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user