diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-06-02 12:45:01 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-07 02:28:06 +0300 |
commit | ce67fef68de552b14ae417511a323013b478f78e (patch) | |
tree | 5741c687be7e745abe02bb4fa8a5877020612e6f /drivers/infiniband/hw/usnic | |
parent | 0147ebcf8927f09e1923114092f6b14c1de75a95 (diff) | |
download | linux-ce67fef68de552b14ae417511a323013b478f78e.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/hw/usnic')
-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 @@ #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; |