lightnvm: Remove redundant rq->__data_len initialization
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 13 Jul 2018 08:48:39 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Jul 2018 14:14:36 +0000 (08:14 -0600)
commit242e461fb628bb63763e0bb2788d52ea054f8721
treea07407b1ac98a5ff5c2317ac29bca2e062c3b0be
parent99b8dad1b6e52721904220322a947f7b75056303
lightnvm: Remove redundant rq->__data_len initialization

Since both blk_old_get_request() and blk_mq_alloc_request() initialize
rq->__data_len to zero, it is not necessary to initialize that member
in nvme_nvm_alloc_request(). Hence remove the rq->__data_len
initialization from nvme_nvm_alloc_request().

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/lightnvm.c