diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-21 00:42:26 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-26 21:51:48 +0200 |
commit | 9de6986148360bdc954e8621cf024f4c830ddb13 (patch) | |
tree | 10eb24062889aa2d1fbc9d11769d3ebc4cc7c660 /drivers/infiniband/sw/rxe | |
parent | RDMA/core: Use dev_name instead of ibdev->name (diff) | |
download | linux-9de6986148360bdc954e8621cf024f4c830ddb13.tar.xz linux-9de6986148360bdc954e8621cf024f4c830ddb13.zip |
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>
Diffstat (limited to 'drivers/infiniband/sw/rxe')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c index 8e658ce439b4..fb06f94f33d8 100644 --- a/drivers/infiniband/sw/rxe/rxe_net.c +++ b/drivers/infiniband/sw/rxe/rxe_net.c @@ -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; } |