Skip to content
Commit 53d6979a authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

nbd: don't clear rq->sector and nr_sectors unnecessarily



There's no reason to clear rq->sector and nr_sectors after calling
blk_rq_init().  They're guaranteed to be clear.  Drop unnecessary
clearing.

[ Impact: cleanup ]

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent f68adec3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment