diff options
author | Zeng Heng <zengheng4@huawei.com> | 2022-09-29 11:12:00 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2022-09-29 11:32:53 +0300 |
commit | 4b83ddc0924752ebb5f99e84e00d1cb725a9aa51 (patch) | |
tree | 119e9a03851e7a613cc0127d23a6a88ce6baf1b6 /drivers/infiniband/hw/usnic | |
parent | cbdae01d8b517b81ed271981395fee8ebd08ba7d (diff) | |
download | linux-4b83ddc0924752ebb5f99e84e00d1cb725a9aa51.tar.gz linux-4b83ddc0924752ebb5f99e84e00d1cb725a9aa51.tar.bz2 linux-4b83ddc0924752ebb5f99e84e00d1cb725a9aa51.zip |
RDMA/usnic: fix set-but-not-unused variable 'flags' warning
Remove unused local variable 'flag'
without any logic changes.
Fixes: e3cf00d0a87f ("IB/usnic: Add Cisco VIC low-level hardware driver")
Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Link: https://lore.kernel.org/r/20220929031200.4060891-1-zengheng4@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/usnic')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_uiom.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c index 67a1b4562dc2..67923ced6e2d 100644 --- a/drivers/infiniband/hw/usnic/usnic_uiom.c +++ b/drivers/infiniband/hw/usnic/usnic_uiom.c @@ -95,7 +95,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, int ret; int off; int i; - int flags; dma_addr_t pa; unsigned int gup_flags; struct mm_struct *mm; @@ -132,8 +131,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, goto out; } - flags = IOMMU_READ | IOMMU_CACHE; - flags |= (writable) ? IOMMU_WRITE : 0; gup_flags = FOLL_WRITE; gup_flags |= (writable) ? 0 : FOLL_FORCE; cur_base = addr & PAGE_MASK; |