diff options
author | Jason Gunthorpe <[email protected]> | 2023-12-07 14:03:10 -0400 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-12-12 10:18:48 +0100 |
commit | 5b4ea8b06eb79234a244ffc1f7405aa968f62069 (patch) | |
tree | 416f40090d20f20c4871d8bee5f79bb33de4c03e /scripts/gdb/linux/utils.py | |
parent | 6ff6e184f1f4d4993d45ca3f934c8288890965fe (diff) |
iommu/of: Use -ENODEV consistently in of_iommu_configure()
Instead of returning 1 and trying to handle positive error codes just
stick to the convention of returning -ENODEV. Remove references to ops
from of_iommu_configure(), a NULL ops will already generate an error code.
There is no reason to check dev->bus, if err=0 at this point then the
called configure functions thought there was an iommu and we should try to
probe it. Remove it.
Reviewed-by: Jerry Snitselaar <[email protected]>
Reviewed-by: Moritz Fischer <[email protected]>
Tested-by: Hector Martin <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions