]> asedeno.scripts.mit.edu Git - linux.git/commit
block: Simplify bvec_split_segs()
authorBart Van Assche <bvanassche@acm.org>
Thu, 1 Aug 2019 22:50:42 +0000 (15:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commitff9811b3cf2092fe6c39cf694e5e7f949f3b2c16
treef61263180210bb5edf1294aa76ef37669928453b
parentdad7758459bc6097115f5e783eda232f36b1ad99
block: Simplify bvec_split_segs()

Simplify this function by by removing two if-tests. Other than requiring
that the @sectors pointer is not NULL, this patch does not change the
behavior of bvec_split_segs().

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c