]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
block: code cleanup queue_poll_stat_show()
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 19 Jun 2019 22:01:50 +0000 (15:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 09:20:05 +0000 (03:20 -0600)
This is a pure code cleanup patch and doesn't change any functionality.
Having multiple coding styles in the code creates confusion when
someone tries to add a new code.

Make queue_poll_stat_show() consistent by adding spaces around binary
operators with the rest of the code.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c

index 03b6aabbe602aa06d76a7a0a6b0d05f032e75149..a8376cc06a39b8706a46a2838d2cd8beb0c53696 100644 (file)
@@ -29,13 +29,13 @@ static int queue_poll_stat_show(void *data, struct seq_file *m)
        struct request_queue *q = data;
        int bucket;
 
-       for (bucket = 0; bucket < BLK_MQ_POLL_STATS_BKTS/2; bucket++) {
-               seq_printf(m, "read  (%d Bytes): ", 1 << (9+bucket));
-               print_stat(m, &q->poll_stat[2*bucket]);
+       for (bucket = 0; bucket < (BLK_MQ_POLL_STATS_BKTS / 2); bucket++) {
+               seq_printf(m, "read  (%d Bytes): ", 1 << (9 + bucket));
+               print_stat(m, &q->poll_stat[2 * bucket]);
                seq_puts(m, "\n");
 
-               seq_printf(m, "write (%d Bytes): ",  1 << (9+bucket));
-               print_stat(m, &q->poll_stat[2*bucket+1]);
+               seq_printf(m, "write (%d Bytes): ",  1 << (9 + bucket));
+               print_stat(m, &q->poll_stat[2 * bucket + 1]);
                seq_puts(m, "\n");
        }
        return 0;