nvme: cleanup nvme_req_needs_retry
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:18:09 +0000 (19:18 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 5 Apr 2017 18:05:08 +0000 (12:05 -0600)
commitf6324b1bb7f8d38c4f8be5509098e4b3ee0194b1
tree06f620272881a64cd8dc095515a9b951cb50b457
parent987f699a8f6c9a724e970c1bb4cde2e2c6a52010
nvme: cleanup nvme_req_needs_retry

Don't pass the status explicitly but derive it from the requeust,
and unwind the complex condition to be more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c