Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <CGME20240729063922epcas5p35577196a5bb929f1fdf60306987d134d@epcas5p3.samsung.com>]
* [PATCH] nvme: remove unused parameter
@ 2020-04-03 16:24 Keith Busch
  2020-04-04  7:14 ` Christoph Hellwig
  0 siblings, 1 reply; 13+ messages in thread
From: Keith Busch @ 2020-04-03 16:24 UTC (permalink / raw)
  To: linux-nvme, hch, sagi; +Cc: Keith Busch

nvme_alloc_ns_head() doesn't use the 'struct nvme_id_ns' parameter.
Remove it, and update caller accordingly.

Signed-off-by: Keith Busch <kbusch@kernel.org>
---
 drivers/nvme/host/core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index d219a531ba4f..05aa3525ef06 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3410,8 +3410,7 @@ static int __nvme_check_ids(struct nvme_subsystem *subsys,
 }
 
 static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl,
-		unsigned nsid, struct nvme_id_ns *id,
-		struct nvme_ns_ids *ids)
+		unsigned nsid, struct nvme_ns_ids *ids)
 {
 	struct nvme_ns_head *head;
 	size_t size = sizeof(*head);
@@ -3482,7 +3481,7 @@ static int nvme_init_ns_head(struct nvme_ns *ns, unsigned nsid,
 	if (is_shared)
 		head = nvme_find_ns_head(ctrl->subsys, nsid);
 	if (!head) {
-		head = nvme_alloc_ns_head(ctrl, nsid, id, &ids);
+		head = nvme_alloc_ns_head(ctrl, nsid, &ids);
 		if (IS_ERR(head)) {
 			ret = PTR_ERR(head);
 			goto out_unlock;
-- 
2.24.1


_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-08-20 16:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20240814135805epcas5p319d7763f641ae4aeac6b4f39fba0072f@epcas5p3.samsung.com>
2024-08-14 13:56 ` [PATCH] nvme: Remove unused parameter Nilay Shroff
2024-08-16  5:31   ` Kanchan Joshi
2024-08-16  5:41   ` Christoph Hellwig
2024-08-16  7:00     ` Nilay Shroff
2024-08-16  7:59       ` Christoph Hellwig
2024-08-16  8:01         ` Nilay Shroff
2024-08-20 14:44   ` Keith Busch
     [not found] <CGME20240729063922epcas5p35577196a5bb929f1fdf60306987d134d@epcas5p3.samsung.com>
2024-07-29  6:31 ` [PATCH] nvme: remove " Kanchan Joshi
2024-07-29  6:42   ` Sagi Grimberg
2024-07-29 14:15   ` Christoph Hellwig
2024-07-29 14:34   ` Keith Busch
2020-04-03 16:24 Keith Busch
2020-04-04  7:14 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox