aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-09-09 16:02:12 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:33 -0400
commit9d5c1e1bf2b906966609f8cf4a844e61adb86bcd (patch)
treef4248260b6eb657f42050396070fdf799af7ffc9 /drivers
parent24b20ac6e1c80082889b3d6ae08aadda777519e5 (diff)
[PATCH] deadline: clean up question mark operator
That ?: trick gives us the creeps. Cc: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/deadline-iosched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/block/deadline-iosched.c b/drivers/block/deadline-iosched.c
index 24594c57c323..52a3ae5289a0 100644
--- a/drivers/block/deadline-iosched.c
+++ b/drivers/block/deadline-iosched.c
@@ -512,7 +512,10 @@ static int deadline_dispatch_requests(struct deadline_data *dd)
512 /* 512 /*
513 * batches are currently reads XOR writes 513 * batches are currently reads XOR writes
514 */ 514 */
515 drq = dd->next_drq[WRITE] ? : dd->next_drq[READ]; 515 if (dd->next_drq[WRITE])
516 drq = dd->next_drq[WRITE];
517 else
518 drq = dd->next_drq[READ];
516 519
517 if (drq) { 520 if (drq) {
518 /* we have a "next request" */ 521 /* we have a "next request" */