浏览代码

blk-mq: fixup type of 'ret' in __blk_mq_try_issue_directly()

Should be a blk_status_t type, not an integer.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Jens Axboe 8 年之前
父节点
当前提交
f06345add9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      block/blk-mq.c

+ 1 - 1
block/blk-mq.c

@@ -1406,7 +1406,7 @@ static void __blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx,
 		.last = true,
 	};
 	blk_qc_t new_cookie;
-	int ret;
+	blk_status_t ret;
 	bool run_queue = true;
 
 	if (blk_mq_hctx_stopped(hctx)) {