Commit 7ec5bd24 authored by Kanchan Joshi's avatar Kanchan Joshi Committed by Keith Busch

nvme: remove unused parameter

First parameter of nvme_init_integrity() is unused.
Remove it, and modify the callers.
Signed-off-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 01aa8c86
...@@ -1757,7 +1757,7 @@ int nvme_getgeo(struct block_device *bdev, struct hd_geometry *geo) ...@@ -1757,7 +1757,7 @@ int nvme_getgeo(struct block_device *bdev, struct hd_geometry *geo)
return 0; return 0;
} }
static bool nvme_init_integrity(struct gendisk *disk, struct nvme_ns_head *head, static bool nvme_init_integrity(struct nvme_ns_head *head,
struct queue_limits *lim) struct queue_limits *lim)
{ {
struct blk_integrity *bi = &lim->integrity; struct blk_integrity *bi = &lim->integrity;
...@@ -2176,7 +2176,7 @@ static int nvme_update_ns_info_block(struct nvme_ns *ns, ...@@ -2176,7 +2176,7 @@ static int nvme_update_ns_info_block(struct nvme_ns *ns,
* I/O to namespaces with metadata except when the namespace supports * I/O to namespaces with metadata except when the namespace supports
* PI, as it can strip/insert in that case. * PI, as it can strip/insert in that case.
*/ */
if (!nvme_init_integrity(ns->disk, ns->head, &lim)) if (!nvme_init_integrity(ns->head, &lim))
capacity = 0; capacity = 0;
ret = queue_limits_commit_update(ns->disk->queue, &lim); ret = queue_limits_commit_update(ns->disk->queue, &lim);
...@@ -2280,7 +2280,7 @@ static int nvme_update_ns_info(struct nvme_ns *ns, struct nvme_ns_info *info) ...@@ -2280,7 +2280,7 @@ static int nvme_update_ns_info(struct nvme_ns *ns, struct nvme_ns_info *info)
if (unsupported) if (unsupported)
ns->head->disk->flags |= GENHD_FL_HIDDEN; ns->head->disk->flags |= GENHD_FL_HIDDEN;
else else
nvme_init_integrity(ns->head->disk, ns->head, &lim); nvme_init_integrity(ns->head, &lim);
ret = queue_limits_commit_update(ns->head->disk->queue, &lim); ret = queue_limits_commit_update(ns->head->disk->queue, &lim);
set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk)); set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk));
......
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