commit | 86937fcd6ed28a2c253119998e0eebfb73dd289e | [log] [tgz] |
---|---|---|
author | Parav Pandit <parav@mellanox.com> | Tue Nov 14 14:52:08 2017 +0200 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Mon Dec 18 15:37:09 2017 -0700 |
tree | 414004b90352e54e0ebd40762277463ffcf7ae1a | |
parent | 1c43d5d308f0858e763f46bc2bd01cd32b67c63e [diff] |
RDMA/core: Avoid redundant memcpy in rdma_addr_find_l2_eth_by_grh rdma_resolve_ip already copies 'addr' to its dev_addr argument. Remove the duplicate memcpy and since it was the only user, remove the 'addr' member from resolve_cb_context. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>