mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
RDMA/rxe: Remove redundant assignment to variable page_offset
The variable page_offset is being assigned a value at the start of a loop and being redundantly zero'd at the end of the loop, there is no code that reads the zero'd value. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <coking@nvidia.com> Link: https://patch.msgid.link/20251014120343.2528608-1-coking@nvidia.com Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev> Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
committed by
Leon Romanovsky
parent
879424832d
commit
1511efaca0
@@ -452,7 +452,6 @@ static int rxe_mr_flush_pmem_iova(struct rxe_mr *mr, u64 iova, unsigned int leng
|
||||
|
||||
length -= bytes;
|
||||
iova += bytes;
|
||||
page_offset = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -358,7 +358,6 @@ int rxe_odp_flush_pmem_iova(struct rxe_mr *mr, u64 iova,
|
||||
|
||||
length -= bytes;
|
||||
iova += bytes;
|
||||
page_offset = 0;
|
||||
}
|
||||
|
||||
mutex_unlock(&umem_odp->umem_mutex);
|
||||
|
||||
Reference in New Issue
Block a user