* [PATCH -next] RDMA/usnic: fix set-but-not-unused variable 'flags' warning
@ 2022-09-29 3:12 Zeng Heng
2022-09-29 8:36 ` Leon Romanovsky
0 siblings, 1 reply; 2+ messages in thread
From: Zeng Heng @ 2022-09-29 3:12 UTC (permalink / raw)
To: benve, neescoba, jgg, leon, roland, umalhi
Cc: linux-rdma, liwei391, zengheng4
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>
---
drivers/infiniband/hw/usnic/usnic_uiom.c | 3 ---
1 file changed, 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;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] RDMA/usnic: fix set-but-not-unused variable 'flags' warning
2022-09-29 3:12 [PATCH -next] RDMA/usnic: fix set-but-not-unused variable 'flags' warning Zeng Heng
@ 2022-09-29 8:36 ` Leon Romanovsky
0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2022-09-29 8:36 UTC (permalink / raw)
To: umalhi, jgg, neescoba, roland, Zeng Heng, benve; +Cc: liwei391, linux-rdma
On Thu, 29 Sep 2022 11:12:00 +0800, Zeng Heng wrote:
> Remove unused local variable 'flag'
> without any logic changes.
>
>
Applied, thanks!
[1/1] RDMA/usnic: fix set-but-not-unused variable 'flags' warning
https://git.kernel.org/rdma/rdma/c/4b83ddc0924752
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-29 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 3:12 [PATCH -next] RDMA/usnic: fix set-but-not-unused variable 'flags' warning Zeng Heng
2022-09-29 8:36 ` Leon Romanovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.