]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
tree: remove nvme_ctrl_get_host{nqn,id}
authorHannes Reinecke <hare@suse.de>
Thu, 30 Sep 2021 08:48:28 +0000 (10:48 +0200)
committerHannes Reinecke <hare@suse.de>
Fri, 8 Oct 2021 11:11:21 +0000 (13:11 +0200)
No point in trying to fetch the host details from the controller;
if required the caller can walk up the chain directly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/nvme/tree.c
src/nvme/tree.h

index 83c712828f9da20283079c8b2f6b512ccbc4dc82..937687daeb3d04d936ba3f8e7bf454bbec7044be 100644 (file)
@@ -675,20 +675,6 @@ const char *nvme_ctrl_get_host_iface(nvme_ctrl_t c)
        return c->host_iface;
 }
 
-const char *nvme_ctrl_get_hostnqn(nvme_ctrl_t c)
-{
-       if (!c->s || !c->s->h)
-               return default_host->hostnqn;
-       return c->s->h->hostnqn;
-}
-
-const char *nvme_ctrl_get_hostid(nvme_ctrl_t c)
-{
-       if (!c->s || !c->s->h)
-               return default_host->hostid;
-       return c->s->h->hostid;
-}
-
 struct nvme_fabrics_config *nvme_ctrl_get_config(nvme_ctrl_t c)
 {
        return &c->cfg;
index 68f5cbfca96781068dbf1b15bc90d8a8a075c11f..7661133453779a13cf5a28ab11d5ac495b8e689a 100644 (file)
@@ -731,22 +731,6 @@ const char *nvme_ctrl_get_transport(nvme_ctrl_t c);
  */
 const char *nvme_ctrl_get_subsysnqn(nvme_ctrl_t c);
 
-/**
- * nvme_ctrl_get_hostnqn() -
- * @c:
- *
- * Return: 
- */
-const char *nvme_ctrl_get_hostnqn(nvme_ctrl_t c);
-
-/**
- * nvme_ctrl_get_hostid() -
- * @c:
- *
- * Return: 
- */
-const char *nvme_ctrl_get_hostid(nvme_ctrl_t c);
-
 /**
  * nvme_ctrl_get_subsystem() -
  * @c: