From: Christoph Hellwig Date: Thu, 20 Apr 2017 14:03:04 +0000 (+0200) Subject: dm rq: don't pass irrelevant error code to blk_mq_complete_request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0af413a45cbbf179a87fef0576882a8e6006244;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dm rq: don't pass irrelevant error code to blk_mq_complete_request dm never uses rq->errors, so there is no need to pass an error argument to blk_mq_complete_request. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn Reviewed-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index e60f1b6845be..1173be21f6f6 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -363,7 +363,7 @@ static void dm_complete_request(struct request *rq, int error) if (!rq->q->mq_ops) blk_complete_request(rq); else - blk_mq_complete_request(rq, error); + blk_mq_complete_request(rq, 0); } /*