]> www.infradead.org Git - users/hch/misc.git/commit
block: req->bio is always set in the merge code
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 08:31:01 +0000 (09:31 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 10:34:50 +0000 (11:34 +0100)
commit44bd100bdc3038b18662da21f2670b273b988dfa
tree2c0f680c1aac61691f35d4dd672b11afebb14c6b
parent3d965a763c204f0f8d84734077abc0f5166ed370
block: req->bio is always set in the merge code

As smatch, which is a lot smarter than me noticed.  So remove the checks
for it, and condense these checks a bit including the comments stating
the obvious.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-merge.c