mm/kasan: get rid of speculative shadow checks
[linux-2.6-microblaze.git] / mm / slab_common.c
index 01a0fe2..904a83b 100644 (file)
@@ -47,13 +47,12 @@ static DECLARE_WORK(slab_caches_to_rcu_destroy_work,
 
 /*
  * Merge control. If this is set then no merging of slab caches will occur.
- * (Could be removed. This was introduced to pacify the merge skeptics.)
  */
-static int slab_nomerge;
+static bool slab_nomerge = !IS_ENABLED(CONFIG_SLAB_MERGE_DEFAULT);
 
 static int __init setup_slab_nomerge(char *str)
 {
-       slab_nomerge = 1;
+       slab_nomerge = true;
        return 1;
 }