dm rq: simplify use_blk_mq initialization
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 18 Nov 2016 22:27:42 +0000 (14:27 -0800)
committerMike Snitzer <snitzer@redhat.com>
Thu, 8 Dec 2016 19:13:07 +0000 (14:13 -0500)
Use a single statement to declare and initialize 'use_blk_mq' instead
of two statements.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-rq.c

index 54b081588b55c44bb11e9a5b8de828cebd1eea33..87ca5dbbe45db1fe0f25ffd35475e90f844db977 100644 (file)
@@ -23,11 +23,7 @@ static unsigned dm_mq_queue_depth = DM_MQ_QUEUE_DEPTH;
 #define RESERVED_REQUEST_BASED_IOS     256
 static unsigned reserved_rq_based_ios = RESERVED_REQUEST_BASED_IOS;
 
-#ifdef CONFIG_DM_MQ_DEFAULT
-static bool use_blk_mq = true;
-#else
-static bool use_blk_mq = false;
-#endif
+static bool use_blk_mq = IS_ENABLED(CONFIG_DM_MQ_DEFAULT);
 
 bool dm_use_blk_mq_default(void)
 {