OSDN Git Service

RDMA/ocrdma: Remove use of idr use pci bdf instead
authorDevesh Sharma <devesh.sharma@broadcom.com>
Wed, 10 Apr 2019 09:10:07 +0000 (05:10 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 12 Apr 2019 13:59:02 +0000 (10:59 -0300)
commit1c00d7bc96c2a4f5a8c8353705dec93bb036ad78
tree5ad3507d9553a9348346e8e7804e365de4ec137b
parentfb652d3299023c8fd1af13c9f897c3e3d8a424d3
RDMA/ocrdma: Remove use of idr use pci bdf instead

Removing the use of IDR variable just to name the function ids. Using the
PCI_FUNC(pdev->devfn) instead to create the device name, associated
resources and to print driver into at various places.

Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/ocrdma/ocrdma_main.c