提交 9d5c1e1b 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] deadline: clean up question mark operator

That ?: trick gives us the creeps.

Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 24b20ac6
...@@ -512,7 +512,10 @@ static int deadline_dispatch_requests(struct deadline_data *dd) ...@@ -512,7 +512,10 @@ static int deadline_dispatch_requests(struct deadline_data *dd)
/* /*
* batches are currently reads XOR writes * batches are currently reads XOR writes
*/ */
drq = dd->next_drq[WRITE] ? : dd->next_drq[READ]; if (dd->next_drq[WRITE])
drq = dd->next_drq[WRITE];
else
drq = dd->next_drq[READ];
if (drq) { if (drq) {
/* we have a "next request" */ /* we have a "next request" */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册