From: Markus Elfring Date: Sat, 21 Jan 2017 21:44:07 +0000 (+0100) Subject: cfq-iosched: Adjust one function call together with a variable assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cf417530375b475d4a8a9f18dc0867f91e52d78;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index c472886c727f..f0f29ee731e1 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -2749,9 +2749,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; }