On Wed, 2017-02-15 at 16:42 +0200, Andy Shevchenko wrote:
> There is inconsistency in return codes across the functions called
> from
> detect_intel_iommu().
> 
> Make it consistent and propagate return code to the caller.

 
> @@ -911,10 +911,9 @@ int __init detect_intel_iommu(void)
>       }
>       up_write(&dmar_global_lock);
>  
> -     return ret ? 1 : -ENODEV;
> +     return ret;

Accidentally it works since we have no late_init() defined.

I will fix this in v2, but will wait for the comments regarding the rest
of the series.

-- 
Andy Shevchenko <[email protected]>
Intel Finland Oy
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to