diff options
| author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-21 22:44:07 +0100 |
|---|---|---|
| committer | Davide Garberi <dade.garberi@gmail.com> | 2022-07-27 18:58:39 +0200 |
| commit | e7bbc37870879d6898d0da44aaea6cdf36e71f9e (patch) | |
| tree | d6d849f4e037c2f8c2d96d6ef4fd22d920a48389 /block | |
| parent | 0ad349a91cc3774a494743af5a9219b585a4f336 (diff) | |
cfq-iosched: Adjust one function call together with a variable assignment
The script "checkpatch.pl" pointed information out like the following.
ERROR: do not use assignment in if condition
Thus fix the affected source code place.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
| -rw-r--r-- | block/cfq-iosched.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 6e78947186a3..49dc542784b9 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -2766,9 +2766,11 @@ static struct cfq_queue *cfq_get_next_queue_forced(struct cfq_data *cfqd) if (!cfqg) return NULL; - for_each_cfqg_st(cfqg, i, j, st) - if ((cfqq = cfq_rb_first(st)) != NULL) + for_each_cfqg_st(cfqg, i, j, st) { + cfqq = cfq_rb_first(st); + if (cfqq) return cfqq; + } return NULL; } |
