author: Mike Snitzer <snitzer@redhat.com> 2014-07-22 18:38:27 -0400
committer: Mike Snitzer <snitzer@redhat.com> 2014-07-22 18:38:27 -0400
commit: 45ccaf4764278f6544db412d38a1bae056ee3acc
parent: 048e5a07f282c57815b3901d4a68a77fa131ce0a
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/slab_common.c b/mm/slab_common.c
index 735e01a0db6f..d31c4bacc6a2 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -55,7 +55,7 @@ static int kmem_cache_sanity_check(const char *name, size_t size)
continue;
}
-#if !defined(CONFIG_SLUB) || !defined(CONFIG_SLUB_DEBUG_ON)
+#if !defined(CONFIG_SLUB)
if (!strcmp(s->name, name)) {
pr_err("%s (%s): Cache name already exists.\n",
__func__, name);