From patchwork Wed Jun 28 10:05:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 9813853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E68060365 for ; Wed, 28 Jun 2017 10:06:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F93B22638 for ; Wed, 28 Jun 2017 10:06:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3143A262FF; Wed, 28 Jun 2017 10:06:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5B1822638 for ; Wed, 28 Jun 2017 10:06:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751500AbdF1KG1 (ORCPT ); Wed, 28 Jun 2017 06:06:27 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:33580 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbdF1KG0 (ORCPT ); Wed, 28 Jun 2017 06:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FJ6MBSkK6DrwsCbO+kpF1SOaYU6TCSvvqs3ypW/F0Us=; b=VIiEexKIw+McLGJwErRHqRvBn hluAdgk72siutT6WCW6xVX/OYSoioYvnaeoxBC86aIXZQUZTlOpIU9IuMw8vZQCOGu4TxvLzti4Wz olJwWy0bvfr/acjuA2k+tr3I/QYIEldugZF91J7hQxPGSOlWlIntMkMK5BLdnPN5fJeUCIdhesm6p Nel1TaN5A08hnf9ssBoQllS3xDIXz8QVlZR1WFLs7nF96V3vs2itvxuXPu3S/EsyoBjQCz+McNIFj o1T5aN3/Tp4GDeCzPL5HXT03fvaeuT4QFYOoOofvAHeJ4Tk+s4EbnDcvjipPv3JOOzMdjNIgB1fUC 3scFxwufQ==; Received: from bzq-82-81-101-184.red.bezeqint.net ([82.81.101.184] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dQ9rb-00016w-5z; Wed, 28 Jun 2017 10:06:25 +0000 From: Sagi Grimberg To: Doug Ledford , linux-rdma@vger.kernel.org Cc: linux-nvme@lists.infradead.org, Christoph Hellwig Subject: [PATCH 3/3] nvmet-rdma: remove redundant empty device add callout Date: Wed, 28 Jun 2017 13:05:38 +0300 Message-Id: <1498644338-19719-4-git-send-email-sagi@grimberg.me> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498644338-19719-1-git-send-email-sagi@grimberg.me> References: <1498644338-19719-1-git-send-email-sagi@grimberg.me> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that its not needed, we can simply not assign it. Signed-off-by: Sagi Grimberg Reviewed-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig --- drivers/nvme/target/rdma.c | 5 ----- 1 file changed, 5 deletions(-) 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 };