@@ -66,9 +66,6 @@ static struct {
UCNA(EMULEX, GEN1), UCNA(EMULEX, GEN2), UCNA(EMULEX, GEN2_VF)
};
-static LIST_HEAD(ocrdma_dev_list);
-static pthread_mutex_t ocrdma_dev_list_lock = PTHREAD_MUTEX_INITIALIZER;
-
static struct ibv_context *ocrdma_alloc_context(struct ibv_device *, int);
static void ocrdma_free_context(struct ibv_context *);
@@ -229,10 +226,6 @@ found:
pthread_mutex_init(&dev->dev_lock, NULL);
pthread_spin_init(&dev->flush_q_lock, PTHREAD_PROCESS_PRIVATE);
dev->ibv_dev.ops = &ocrdma_dev_ops;
- list_node_init(&dev->entry);
- pthread_mutex_lock(&ocrdma_dev_list_lock);
- list_add_tail(&ocrdma_dev_list, &dev->entry);
- pthread_mutex_unlock(&ocrdma_dev_list_lock);
return &dev->ibv_dev;
qp_err:
free(dev);
@@ -58,7 +58,6 @@ struct ocrdma_device {
struct ocrdma_qp **qp_tbl;
pthread_mutex_t dev_lock;
pthread_spinlock_t flush_q_lock;
- struct list_node entry;
int id;
int gen;
uint32_t wqe_size;
Nothing ever reads this. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> --- providers/ocrdma/ocrdma_main.c | 7 ------- providers/ocrdma/ocrdma_main.h | 1 - 2 files changed, 8 deletions(-)