]> git.baikalelectronics.ru Git - kernel.git/commit
ide: cleanup ->prep_rq calling convention
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Nov 2018 13:42:35 +0000 (14:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Nov 2018 02:17:13 +0000 (19:17 -0700)
commit6f897c2bd467495bae22ea431af303a935511d6c
treea007c66ce4e12a4086085f48dddf1946e67f85f0
parent914a02f0ea23f93c392bce89b2cde511d77dbd48
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>
drivers/ide/ide-cd.c
drivers/ide/ide-disk.c
drivers/ide/ide-io.c
include/linux/ide.h