]> www.infradead.org Git - users/hch/block.git/commit
md: make md_flush_request() more readable
authorLi Nan <linan122@huawei.com>
Tue, 28 May 2024 20:31:49 +0000 (04:31 +0800)
committerSong Liu <song@kernel.org>
Mon, 10 Jun 2024 19:15:44 +0000 (19:15 +0000)
commitacc6680af28696a037ede62867e731841d4454c2
tree4cb3d81a75109db385b3b4c4124f7f45dceab03d
parent611d5cbc0b35a752e657a83eebadf40d814d006b
md: make md_flush_request() more readable

Setting bio to NULL and checking 'if(!bio)' is redundant and looks strange,
just consolidate them into one condition. There are no functional changes.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240528203149.2383260-1-linan666@huaweicloud.com
drivers/md/md.c