diff options
author | Joe Perches <joe@perches.com> | 2021-02-10 06:07:28 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-10 16:06:00 +0100 |
commit | 6751c1e3cff3aa763c760c08862627069a37b50e (patch) | |
tree | 0d30ebfe735b77a339fdfc884921edf3e14859a3 /drivers/md/bcache/sysfs.c | |
parent | bcache: Move journal work to new flush wq (diff) | |
download | linux-6751c1e3cff3aa763c760c08862627069a37b50e.tar.xz linux-6751c1e3cff3aa763c760c08862627069a37b50e.zip |
bcache: Avoid comma separated statements
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/sysfs.c')
-rw-r--r-- | drivers/md/bcache/sysfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index eef15f8022ba..cc89f3156d1a 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -1094,8 +1094,10 @@ SHOW(__bch_cache) --n; while (cached < p + n && - *cached == BTREE_PRIO) - cached++, n--; + *cached == BTREE_PRIO) { + cached++; + n--; + } for (i = 0; i < n; i++) sum += INITIAL_PRIO - cached[i]; |