The block layer already checks for this conditions in bio_check_eod
before calling the driver.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
            (bio->bi_iter.bi_size & 4095) != 0)
                /* Request is not page-aligned. */
                goto fail;
-       if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) {
-               /* Request beyond end of DCSS segment. */
-               goto fail;
-       }
        /* verify data transfer direction */
        if (dev_info->is_shared) {
                switch (dev_info->segment_type) {