commit | c092d4ec53c9c7e690ad517b414078db4da6870b | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Fri Nov 09 14:42:36 2018 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Nov 09 19:17:13 2018 -0700 |
tree | 0257c6293612f2292661b3b3382f53fb13267a3f | |
parent | 535ac5d3fe63b9ea1dda379f606f9d0d377d7184 [diff] |
scsi: simplify scsi_prep_state_check Return a blk_status_t directly, and make the code a little more compact by handling the fast path in the caller. Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>