iommu/dmar: Rectify return code handling in detect_intel_iommu()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 16 Mar 2017 14:23:51 +0000 (16:23 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 22 Mar 2017 14:42:17 +0000 (15:42 +0100)
commit8326c5d2057a06adb082f3547c5d1f75cfd33e57
tree4fcf1f78089cbc14093ca20ad9ba9d040e7d6e89
parent97da3854c526d3a6ee05c849c96e48d21527606c
iommu/dmar: Rectify return code handling in detect_intel_iommu()

There is inconsistency in return codes across the functions called from
detect_intel_iommu().

Make it consistent and propagate return code to the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c