commit | 536a631d1ec1de6ed51453954407068c10473eea | [log] [tgz] |
---|---|---|
author | Parav Pandit <parav@mellanox.com> | Mon Aug 27 08:44:16 2018 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Thu Aug 30 16:31:50 2018 -0400 |
tree | 8b760910b1fef572ecd431229ce5c8ebb8c3b970 | |
parent | 3ccf19e25adf2d3b9c5f1e65b950b6d223e1c4c0 [diff] |
IB/rxe: Avoid NULL check when search is successful While performing lookup in a pool, if entry is found, take the reference right there, instead of checking again outside the loop and save one branch. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>