Re: [PATCH] block: remove dead queue_dma_alignment branch from bio_map_user_iov()

From: Christoph Hellwig
Date: Tue Jan 04 2022 - 07:47:31 EST


On Tue, Jan 04, 2022 at 01:01:58PM +0100, Lukas Bulwahn wrote:
> If queue_dma_alignment(rq->q), then blk_rq_map_user_iov() will call
> bio_copy_user_iov() and not bio_map_user_iov(). So, bio_map_user_iov() does
> not need to handle the queue_dma_alignment(rq->q) case in any special way.
>
> Remove this dead branch from bio_map_user_iov().

Looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>