From: Andrew Morton Date: Mon, 23 Aug 2021 23:59:48 +0000 (+1000) Subject: mm-damon-implement-a-debugfs-based-user-space-interface-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=729cd45732571206c92ab31b1eb6fbf3fc1eac51;p=users%2Fjedix%2Flinux-maple.git mm-damon-implement-a-debugfs-based-user-space-interface-fix remove unneeded "alloc failed" printks Cc: SeongJae Park Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index 322f624710d7..5e2c9b5e7eac 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -373,14 +373,11 @@ static int __init damon_dbgfs_init(void) int rc; dbgfs_ctxs = kmalloc(sizeof(*dbgfs_ctxs), GFP_KERNEL); - if (!dbgfs_ctxs) { - pr_err("%s: dbgfs ctxs alloc failed\n", __func__); + if (!dbgfs_ctxs) return -ENOMEM; - } dbgfs_ctxs[0] = dbgfs_new_ctx(); if (!dbgfs_ctxs[0]) { kfree(dbgfs_ctxs); - pr_err("%s: dbgfs ctx alloc failed\n", __func__); return -ENOMEM; } dbgfs_nr_ctxs = 1;