diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-09 16:42:35 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-10 05:17:13 +0300 |
commit | 535ac5d3fe63b9ea1dda379f606f9d0d377d7184 (patch) | |
tree | a007c66ce4e12a4086085f48dddf1946e67f85f0 /include/linux/ide.h | |
parent | 9d037ad707ed6069fbea4e38e6ee37e027b13f1d (diff) | |
download | linux-535ac5d3fe63b9ea1dda379f606f9d0d377d7184.tar.xz |
ide: cleanup ->prep_rq calling convention
The return value is just used as a binary yes/no decision, so switch
it to a bool instead of the old BLKPREP_* values returned as an int.
Also clean up a few related comments.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 079f8bc0b0f4..272704ff21ee 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -529,7 +529,7 @@ struct ide_drive_s { struct request_queue *queue; /* request queue */ - int (*prep_rq)(struct ide_drive_s *, struct request *); + bool (*prep_rq)(struct ide_drive_s *, struct request *); struct blk_mq_tag_set tag_set; |