nvme-rdma: remove redundant empty device add callout
authorSagi Grimberg <sagi@grimberg.me>
Sun, 2 Jul 2017 08:20:51 +0000 (11:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Aug 2017 14:46:20 +0000 (10:46 -0400)
Now that its not needed, we can simply not assign it.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/nvme/host/rdma.c

index da04df1af231758cb4965735c417a215d736ec94..ef2fb6aa79bc5d536a2adc80e8c0fca5a9cd8c76 100644 (file)
@@ -1946,10 +1946,6 @@ static struct nvmf_transport_ops nvme_rdma_transport = {
        .create_ctrl    = nvme_rdma_create_ctrl,
 };
 
-static void nvme_rdma_add_one(struct ib_device *ib_device)
-{
-}
-
 static void nvme_rdma_remove_one(struct ib_device *ib_device, void *client_data)
 {
        struct nvme_rdma_ctrl *ctrl;
@@ -1971,7 +1967,6 @@ static void nvme_rdma_remove_one(struct ib_device *ib_device, void *client_data)
 
 static struct ib_client nvme_rdma_ib_client = {
        .name   = "nvme_rdma",
-       .add = nvme_rdma_add_one,
        .remove = nvme_rdma_remove_one
 };