Skip to content

Commit

Permalink
nvme: remove unused parameter
Browse files Browse the repository at this point in the history
First parameter of nvme_init_integrity() is unused.
Remove it, and modify the callers.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
  • Loading branch information
Kanchan Joshi authored and Keith Busch committed Jul 29, 2024
1 parent 01aa8c8 commit 7ec5bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ int nvme_getgeo(struct block_device *bdev, struct hd_geometry *geo)
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 blk_integrity *bi = &lim->integrity;
Expand Down Expand Up @@ -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
* 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;

ret = queue_limits_commit_update(ns->disk->queue, &lim);
Expand Down Expand Up @@ -2280,7 +2280,7 @@ static int nvme_update_ns_info(struct nvme_ns *ns, struct nvme_ns_info *info)
if (unsupported)
ns->head->disk->flags |= GENHD_FL_HIDDEN;
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);

set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk));
Expand Down

0 comments on commit 7ec5bd2

Please sign in to comment.