Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce67fef6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Doug Ledford
Browse files

IB/usnic: Remove unused DMA attributes



The DMA attributes are set but never used.

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 0147ebcf
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@
#include <linux/dma-mapping.h>
#include <linux/sched.h>
#include <linux/hugetlb.h>
#include <linux/dma-attrs.h>
#include <linux/iommu.h>
#include <linux/workqueue.h>
#include <linux/list.h>
@@ -112,10 +111,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable,
	int i;
	int flags;
	dma_addr_t pa;
	DEFINE_DMA_ATTRS(attrs);

	if (dmasync)
		dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs);

	if (!can_do_mlock())
		return -EPERM;