mm/slab_common.c: suppress warning
[deliverable/linux.git] / mm / slab_common.c
index d319502b24038b7ad0aee1023b88c5c6501fc39e..cabb842c4e7c8efa7840c8c700e7d6d51a4f498a 100644 (file)
@@ -211,8 +211,10 @@ kmem_cache_create(const char *name, size_t size, size_t align,
        mutex_lock(&slab_mutex);
 
        err = kmem_cache_sanity_check(name, size);
-       if (err)
+       if (err) {
+               s = NULL;       /* suppress uninit var warning */
                goto out_unlock;
+       }
 
        /*
         * Some allocators will constraint the set of valid flags to a subset
This page took 0.051337 seconds and 5 git commands to generate.