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>
This commit is contained in:
parent
cbdae01d8b
commit
4b83ddc092
@ -95,7 +95,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable,
|
|||||||
int ret;
|
int ret;
|
||||||
int off;
|
int off;
|
||||||
int i;
|
int i;
|
||||||
int flags;
|
|
||||||
dma_addr_t pa;
|
dma_addr_t pa;
|
||||||
unsigned int gup_flags;
|
unsigned int gup_flags;
|
||||||
struct mm_struct *mm;
|
struct mm_struct *mm;
|
||||||
@ -132,8 +131,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
flags = IOMMU_READ | IOMMU_CACHE;
|
|
||||||
flags |= (writable) ? IOMMU_WRITE : 0;
|
|
||||||
gup_flags = FOLL_WRITE;
|
gup_flags = FOLL_WRITE;
|
||||||
gup_flags |= (writable) ? 0 : FOLL_FORCE;
|
gup_flags |= (writable) ? 0 : FOLL_FORCE;
|
||||||
cur_base = addr & PAGE_MASK;
|
cur_base = addr & PAGE_MASK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user