Skip to content
Commit d6c7276b authored by Roland Dreier's avatar Roland Dreier Committed by Doug Ledford
Browse files

IB/mlx5: Remove dead code from alloc_cached_mr()



The only place that assigns mr inside the loop already does a break.
So "if (mr)" will never be true here since the function initializes mr
to NULL at the top.  We can just drop the extra if and break here.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
Acked-by: default avatarEli Cohen <eli@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d6f1c17e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment