Merge branch 'omap-for-v4.14/fixes' into omap-for-v4.15/fixes-v2
[linux] / lib / test_kasan.c
index a25c976..ef1a3ac 100644 (file)
@@ -353,10 +353,9 @@ static noinline void __init memcg_accounted_kmem_cache(void)
         */
        for (i = 0; i < 5; i++) {
                p = kmem_cache_alloc(cache, GFP_KERNEL);
-               if (!p) {
-                       pr_err("Allocation failed\n");
+               if (!p)
                        goto free_cache;
-               }
+
                kmem_cache_free(cache, p);
                msleep(100);
        }