Skip to content

Commit

Permalink
nvmet-rdma: remove redundant empty device add callout
Browse files Browse the repository at this point in the history
Now that its not needed, we can simply not assign it.

Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
  • Loading branch information
sagigrimberg authored and dledford committed Aug 18, 2017
1 parent 5138e4b commit ec06530
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/nvme/target/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,10 +1510,6 @@ static struct nvmet_fabrics_ops nvmet_rdma_ops = {
.delete_ctrl = nvmet_rdma_delete_ctrl,
};

static void nvmet_rdma_add_one(struct ib_device *ib_device)
{
}

static void nvmet_rdma_remove_one(struct ib_device *ib_device, void *client_data)
{
struct nvmet_rdma_queue *queue;
Expand All @@ -1534,7 +1530,6 @@ static void nvmet_rdma_remove_one(struct ib_device *ib_device, void *client_data

static struct ib_client nvmet_rdma_ib_client = {
.name = "nvmet_rdma",
.add = nvmet_rdma_add_one,
.remove = nvmet_rdma_remove_one
};

Expand Down

0 comments on commit ec06530

Please sign in to comment.