Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()
From:
Christoph Hellwig
Date:
Mon Dec 02 2019 - 11:59:24 EST
Next message:
Christoph Hellwig: "Re: [PATCH v2] iommu/amd: Disable IOMMU on Stoney Ridge systems"
Previous message:
Christoph Hellwig: "Re: [Patch v2 1/3] iommu: match the original algorithm"
In reply to:
Cong Wang: "Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()"
Next in thread:
Cong Wang: "Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()"
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
>
+ return (mag && mag->size == IOVA_MAG_SIZE);
>
+ return (!mag || mag->size == 0);
No need for the braces in both cases.
Next message:
Christoph Hellwig: "Re: [PATCH v2] iommu/amd: Disable IOMMU on Stoney Ridge systems"
Previous message:
Christoph Hellwig: "Re: [Patch v2 1/3] iommu: match the original algorithm"
In reply to:
Cong Wang: "Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()"
Next in thread:
Cong Wang: "Re: [Patch v2 2/3] iommu: optimize iova_magazine_free_pfns()"
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]