This makes the code more obvious, and moves the most likely branch first
in the function.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
        blk_status_t status;
 
        bi = bdev_get_integrity(bio->bi_bdev);
+       if (!bi)
+               return true;
+
        q = bdev_get_queue(bio->bi_bdev);
        if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE)
                return true;
        if (bio_integrity(bio))
                return true;
 
-       if (bi == NULL)
-               return true;
-
        if (bio_data_dir(bio) == READ) {
                if (!bi->profile->verify_fn ||
                    !(bi->flags & BLK_INTEGRITY_VERIFY))