Skip to content

Commit b5a1f75

Browse files
krzkjoergroedel
authored andcommitted
iommu: re-use local fwnode variable in iommu_ops_from_fwnode()
iommu_ops_from_fwnode() stores &iommu_spec->np->fwnode in local variable, so use it to simplify the code (iommu_spec is not changed between these dereferences). Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5896e6e commit b5a1f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/of_iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int of_iommu_xlate(struct device *dev,
2929
!of_device_is_available(iommu_spec->np))
3030
return -ENODEV;
3131

32-
ret = iommu_fwspec_init(dev, &iommu_spec->np->fwnode, ops);
32+
ret = iommu_fwspec_init(dev, fwnode, ops);
3333
if (ret)
3434
return ret;
3535
/*

0 commit comments

Comments
 (0)