Skip to content

Commit 7ec5bd2

Browse files
Kanchan Joshikeithbusch
authored andcommitted
nvme: remove unused parameter
First parameter of nvme_init_integrity() is unused. Remove it, and modify the callers. Signed-off-by: Kanchan Joshi <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 01aa8c8 commit 7ec5bd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/nvme/host/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ int nvme_getgeo(struct block_device *bdev, struct hd_geometry *geo)
17571757
return 0;
17581758
}
17591759

1760-
static bool nvme_init_integrity(struct gendisk *disk, struct nvme_ns_head *head,
1760+
static bool nvme_init_integrity(struct nvme_ns_head *head,
17611761
struct queue_limits *lim)
17621762
{
17631763
struct blk_integrity *bi = &lim->integrity;
@@ -2176,7 +2176,7 @@ static int nvme_update_ns_info_block(struct nvme_ns *ns,
21762176
* I/O to namespaces with metadata except when the namespace supports
21772177
* PI, as it can strip/insert in that case.
21782178
*/
2179-
if (!nvme_init_integrity(ns->disk, ns->head, &lim))
2179+
if (!nvme_init_integrity(ns->head, &lim))
21802180
capacity = 0;
21812181

21822182
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)
22802280
if (unsupported)
22812281
ns->head->disk->flags |= GENHD_FL_HIDDEN;
22822282
else
2283-
nvme_init_integrity(ns->head->disk, ns->head, &lim);
2283+
nvme_init_integrity(ns->head, &lim);
22842284
ret = queue_limits_commit_update(ns->head->disk->queue, &lim);
22852285

22862286
set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk));

0 commit comments

Comments
 (0)