From: Bart Van Assche Date: Fri, 18 Nov 2016 22:27:42 +0000 (-0800) Subject: dm rq: simplify use_blk_mq initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b23df0d048e5f137ad5c2a116ec0849a98d43b96;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dm rq: simplify use_blk_mq initialization Use a single statement to declare and initialize 'use_blk_mq' instead of two statements. Signed-off-by: Bart Van Assche Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 54b081588b55..87ca5dbbe45d 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -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) {