Bits in tag_mask will not be accessed after it's cleared. So we can remove this unnecessary clear. Signed-off-by: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx> --- block/blk-mq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 89b4dd81ae17..6014d9b5e296 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -456,7 +456,6 @@ __blk_mq_alloc_requests_batch(struct blk_mq_alloc_data *data, continue; tag = tag_offset + i; prefetch(tags->static_rqs[tag]); - tag_mask &= ~(1UL << i); rq = blk_mq_rq_ctx_init(data, tags, tag, alloc_time_ns); rq_list_add(data->cached_rq, rq); nr++; -- 2.30.0