Let's not depend on any of the BLK_MQ_RQ_QUEUE_* constants having
specific values. No functional change.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
 {
        switch (ret) {
        case BLKPREP_OK:
-               return 0;
+               return BLK_MQ_RQ_QUEUE_OK;
        case BLKPREP_DEFER:
                return BLK_MQ_RQ_QUEUE_BUSY;
        default:
        int reason;
 
        ret = prep_to_mq(scsi_prep_state_check(sdev, req));
-       if (ret)
+       if (ret != BLK_MQ_RQ_QUEUE_OK)
                goto out;
 
        ret = BLK_MQ_RQ_QUEUE_BUSY;
 
        if (!(req->rq_flags & RQF_DONTPREP)) {
                ret = prep_to_mq(scsi_mq_prep_fn(req));
-               if (ret)
+               if (ret != BLK_MQ_RQ_QUEUE_OK)
                        goto out_dec_host_busy;
                req->rq_flags |= RQF_DONTPREP;
        } else {