diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-06-02 05:45:01 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-06 19:28:06 -0400 |
commit | ce67fef68de552b14ae417511a323013b478f78e (patch) | |
tree | 5741c687be7e745abe02bb4fa8a5877020612e6f | |
parent | 0147ebcf8927f09e1923114092f6b14c1de75a95 (diff) |
IB/usnic: Remove unused DMA attributes
The DMA attributes are set but never used.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_uiom.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c index 7209fbc03ccb..a0b6ebee4d8a 100644 --- a/drivers/infiniband/hw/usnic/usnic_uiom.c +++ b/drivers/infiniband/hw/usnic/usnic_uiom.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
37 | #include <linux/sched.h> | 37 | #include <linux/sched.h> |
38 | #include <linux/hugetlb.h> | 38 | #include <linux/hugetlb.h> |
39 | #include <linux/dma-attrs.h> | ||
40 | #include <linux/iommu.h> | 39 | #include <linux/iommu.h> |
41 | #include <linux/workqueue.h> | 40 | #include <linux/workqueue.h> |
42 | #include <linux/list.h> | 41 | #include <linux/list.h> |
@@ -112,10 +111,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, | |||
112 | int i; | 111 | int i; |
113 | int flags; | 112 | int flags; |
114 | dma_addr_t pa; | 113 | dma_addr_t pa; |
115 | DEFINE_DMA_ATTRS(attrs); | ||
116 | |||
117 | if (dmasync) | ||
118 | dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); | ||
119 | 114 | ||
120 | if (!can_do_mlock()) | 115 | if (!can_do_mlock()) |
121 | return -EPERM; | 116 | return -EPERM; |