summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJohn Garry <john.g.garry@oracle.com>2024-11-25 11:02:58 +0100
committerJens Axboe <axboe@kernel.dk>2024-11-25 16:42:14 +0100
commitedc80c585772cac59ef780899269436a0823fe67 (patch)
treef247b7e0b7fd33b16630e0684c80f71f10d2f5d5 /block/blk-mq.c
parentMerge tag 'nvme-6.13-2024-11-21' of git://git.infradead.org/nvme into for-6.1... (diff)
downloadlinux-edc80c585772cac59ef780899269436a0823fe67.tar.xz
linux-edc80c585772cac59ef780899269436a0823fe67.zip
block: Remove extra part pointer NULLify in blk_rq_init()
The rq->part pointer is already NULLified in the memset() call, so - like for other pointers in rq - don't re-NULLify. Signed-off-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20241125100258.4172774-1-john.g.garry@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index abdf44736e08..424239c075e2 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -388,7 +388,6 @@ void blk_rq_init(struct request_queue *q, struct request *rq)
rq->tag = BLK_MQ_NO_TAG;
rq->internal_tag = BLK_MQ_NO_TAG;
rq->start_time_ns = blk_time_get_ns();
- rq->part = NULL;
blk_crypto_rq_set_defaults(rq);
}
EXPORT_SYMBOL(blk_rq_init);