commit | d6c7276be180fbd0a30cda8fac5c82d483be47b6 | [log] [tgz] |
---|---|---|
author | Roland Dreier <roland@purestorage.com> | Mon Jul 27 14:43:23 2015 -0700 |
committer | Doug Ledford <dledford@redhat.com> | Fri Aug 28 22:54:47 2015 -0400 |
tree | 7eebccae134bf571ce53f8b9911e6d3fbc01cf15 | |
parent | d6f1c17e162b2a11e708f28fa93f2f79c164b442 [diff] |
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: Roland Dreier <roland@purestorage.com> Acked-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>