Commit 03f8cebc authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe

nvme: remove unused parameter

nvme_alloc_ns_head() doesn't use the 'struct nvme_id_ns' parameter.
Remove it, and update caller accordingly.
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 71fb90eb
...@@ -3410,8 +3410,7 @@ static int __nvme_check_ids(struct nvme_subsystem *subsys, ...@@ -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, static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl,
unsigned nsid, struct nvme_id_ns *id, unsigned nsid, struct nvme_ns_ids *ids)
struct nvme_ns_ids *ids)
{ {
struct nvme_ns_head *head; struct nvme_ns_head *head;
size_t size = sizeof(*head); size_t size = sizeof(*head);
...@@ -3482,7 +3481,7 @@ static int nvme_init_ns_head(struct nvme_ns *ns, unsigned nsid, ...@@ -3482,7 +3481,7 @@ static int nvme_init_ns_head(struct nvme_ns *ns, unsigned nsid,
if (is_shared) if (is_shared)
head = nvme_find_ns_head(ctrl->subsys, nsid); head = nvme_find_ns_head(ctrl->subsys, nsid);
if (!head) { if (!head) {
head = nvme_alloc_ns_head(ctrl, nsid, id, &ids); head = nvme_alloc_ns_head(ctrl, nsid, &ids);
if (IS_ERR(head)) { if (IS_ERR(head)) {
ret = PTR_ERR(head); ret = PTR_ERR(head);
goto out_unlock; goto out_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment