* the driver data structure.
* @bio Pointer to the BIO.
*
- * return value
- * 0
*/
-static int mtip_make_request(struct request_queue *queue, struct bio *bio)
+static void mtip_make_request(struct request_queue *queue, struct bio *bio)
{
struct driver_data *dd = queue->queuedata;
struct scatterlist *sg;
if (unlikely(!bio_has_data(bio))) {
blk_queue_flush(queue, 0);
bio_endio(bio, 0);
- return 0;
+ return;
}
if (unlikely(atomic_read(&dd->eh_active))) {
bio_endio(bio, -EBUSY);
- return 0;
+ return;
}
sg = mtip_hw_get_scatterlist(dd, &tag);
"Maximum number of SGL entries exceeded");
bio_io_error(bio);
mtip_hw_release_scatterlist(dd, tag);
- return 0;
+ return;
}
/* Create the scatter list for this bio. */
bio,
bio->bi_rw & REQ_FLUSH,
bio_data_dir(bio));
- } else {
+ } else
bio_io_error(bio);
- }
-
- return 0;
}
/*