mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
[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>
This commit is contained in:
parent
24b20ac6e1
commit
9d5c1e1bf2
1 changed files with 4 additions and 1 deletions
|
@ -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" */
|
||||||
|
|
Loading…
Reference in a new issue