Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: null_blk: Fix code style issues

Fix message grammar and code style issues (brackets and indentation) in
null_init().

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220420005718.3780004-2-damien.lemoal@opensource.wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Damien Le Moal and committed by
Jens Axboe
525323d2 0000f2f7

+6 -4
+6 -4
drivers/block/null_blk/main.c
··· 2111 2111 } 2112 2112 2113 2113 if (g_queue_mode == NULL_Q_RQ) { 2114 - pr_err("legacy IO path no longer available\n"); 2114 + pr_err("legacy IO path is no longer available\n"); 2115 2115 return -EINVAL; 2116 2116 } 2117 + 2117 2118 if (g_queue_mode == NULL_Q_MQ && g_use_per_node_hctx) { 2118 2119 if (g_submit_queues != nr_online_nodes) { 2119 2120 pr_warn("submit_queues param is set to %u.\n", 2120 - nr_online_nodes); 2121 + nr_online_nodes); 2121 2122 g_submit_queues = nr_online_nodes; 2122 2123 } 2123 - } else if (g_submit_queues > nr_cpu_ids) 2124 + } else if (g_submit_queues > nr_cpu_ids) { 2124 2125 g_submit_queues = nr_cpu_ids; 2125 - else if (g_submit_queues <= 0) 2126 + } else if (g_submit_queues <= 0) { 2126 2127 g_submit_queues = 1; 2128 + } 2127 2129 2128 2130 if (g_queue_mode == NULL_Q_MQ && shared_tags) { 2129 2131 ret = null_init_tag_set(NULL, &tag_set);