RDMA/device: Use __ib_device_get_by_name() in ib_device_rename()

No reason to open code this loop.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
This commit is contained in:
Jason Gunthorpe 2019-01-12 02:42:42 +00:00
commit 344684e6d0