[PATCH] blk-mq: remove unused param in bt_alloc()

From: nimisolo
Date: Mon Apr 06 2015 - 05:36:53 EST


In bt_alloc(), the param is unused, maybe we can remove it.

Signed-off-by: nimisolo <nimisolo@xxxxxxxxxx>
---
block/blk-mq-tag.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index be3290c..b7ac73a 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -486,7 +486,7 @@ static void bt_update_count(struct blk_mq_bitmap_tags *bt,
}

static int bt_alloc(struct blk_mq_bitmap_tags *bt, unsigned int depth,
- int node, bool reserved)
+ int node)
{
int i;

@@ -553,9 +553,9 @@ static struct blk_mq_tags *blk_mq_init_bitmap_tags(struct blk_mq_tags *tags,

tags->alloc_policy = alloc_policy;

- if (bt_alloc(&tags->bitmap_tags, depth, node, false))
+ if (bt_alloc(&tags->bitmap_tags, depth, node))
goto enomem;
- if (bt_alloc(&tags->breserved_tags, tags->nr_reserved_tags, node, true))
+ if (bt_alloc(&tags->breserved_tags, tags->nr_reserved_tags, node))
goto enomem;

return tags;
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/