]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/rxe: Remove redundant assignment to variable page_offset
authorColin Ian King <coking@nvidia.com>
Tue, 14 Oct 2025 12:03:43 +0000 (13:03 +0100)
committerLeon Romanovsky <leon@kernel.org>
Sun, 19 Oct 2025 12:06:21 +0000 (08:06 -0400)
commit1511efaca032ed209c04b2af67915a613673865c
treeed8c8aebc6737ab5ab285373473db571fb0bb977
parent879424832d241001e288cc741ed8a9253387a34a
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>
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_odp.c