Skip to contentSkip to conversation

blk-mq: fix coding style

PATCH In review Soonwoo Hong 2 participants 3 messages Jun 8, 2019 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk-mq: fix coding style

Add a space before colon in ternary operator

---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq.c +1 -1
index ce0f5f4ede70..374b13e89bb1 100644
@@ -1377,7 +1377,7 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)
 		cpu_online(hctx->next_cpu)) {
 		printk(KERN_WARNING "run queue from wrong CPU %d, hctx %s\n",
 			raw_smp_processor_id(),
-			cpumask_empty(hctx->cpumask) ? "inactive": "active");
+			cpumask_empty(hctx->cpumask) ? "inactive" : "active");
 		dump_stack();
 	}
 
Signature · 1 line
2.21.0
#2 lore raw
Quoted 8 lines · Greg KH
Quoted 6 lines · Soonwoo Hong

Add a space before colon in ternary operator

---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
$ ./scripts/get_maintainer.pl --file block/blk-mq.c
Jens Axboe <[email protected]> (maintainer:BLOCK LAYER)
[email protected] (open list:BLOCK LAYER)
[email protected] (open list)

Also, doing coding style cleanups outside of drivers/staging/ is a tough thing to do, please don't make it harder on yourself...

good luck!

greg k-h