From: Sagi Grimberg Date: Sun, 2 Jul 2017 08:20:52 +0000 (+0300) Subject: nvmet-rdma: remove redundant empty device add callout X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec06530e765adfdb3a0f8a4f9486a18dcfef6218;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nvmet-rdma: remove redundant empty device add callout Now that its not needed, we can simply not assign it. Reviewed-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg Signed-off-by: Doug Ledford --- diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c index 56a4cba690b5..76d2bb793afe 100644 --- a/drivers/nvme/target/rdma.c +++ b/drivers/nvme/target/rdma.c @@ -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; @@ -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 };