From: Christoph Hellwig Date: Wed, 10 Apr 2019 16:14:08 +0000 (+0200) Subject: iommu/vt-d: Don't clear GFP_DMA and GFP_DMA32 flags X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f7ae70a5e347f7a314e266c66c67876adbab3245;p=linux.git iommu/vt-d: Don't clear GFP_DMA and GFP_DMA32 flags We already do this in the caller. Signed-off-by: Christoph Hellwig Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 1b7dd11e5581a..599a25809440f 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -3790,7 +3790,6 @@ static void *intel_alloc_coherent(struct device *dev, size_t size, size = PAGE_ALIGN(size); order = get_order(size); - flags &= ~(GFP_DMA | GFP_DMA32); if (gfpflags_allow_blocking(flags)) { unsigned int count = size >> PAGE_SHIFT;