RDMA/drivers: Use dev_name instead of ibdev->name
These return the same thing but dev_name is a more conventional use of the kernel API. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
This commit is contained in:
@@ -72,7 +72,7 @@ struct rxe_dev *get_rxe_by_name(const char *name)
|
||||
|
||||
spin_lock_bh(&dev_list_lock);
|
||||
list_for_each_entry(rxe, &rxe_dev_list, list) {
|
||||
if (!strcmp(name, rxe->ib_dev.name)) {
|
||||
if (!strcmp(name, dev_name(&rxe->ib_dev.dev))) {
|
||||
found = rxe;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user