diff options
-rw-r--r-- | block/blk-mq-cpumap.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-cpumap.c index 9f8cffc8a701..3eb169f15842 100644 --- a/block/blk-mq-cpumap.c +++ b/block/blk-mq-cpumap.c | |||
@@ -16,11 +16,6 @@ | |||
16 | 16 | ||
17 | static int cpu_to_queue_index(unsigned int nr_queues, const int cpu) | 17 | static int cpu_to_queue_index(unsigned int nr_queues, const int cpu) |
18 | { | 18 | { |
19 | /* | ||
20 | * Non present CPU will be mapped to queue index 0. | ||
21 | */ | ||
22 | if (!cpu_present(cpu)) | ||
23 | return 0; | ||
24 | return cpu % nr_queues; | 19 | return cpu % nr_queues; |
25 | } | 20 | } |
26 | 21 | ||