blk-throttle: Adjust two function calls together with a variable assignment
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 21 Jan 2017 21:15:33 +0000 (22:15 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 23 Jan 2017 15:32:15 +0000 (08:32 -0700)
commitd609af3a1397511a7a2c213f9f855fa82df771ee
tree65b4e6bc4b57675d2e29709b763f37922787ed46
parent4d608baac5f4e72b033a122b2d6d9499532c3afc
blk-throttle: Adjust two function calls 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 places.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c