]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-damon-implement-a-debugfs-based-user-space-interface-fix
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 23 Aug 2021 23:59:48 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:33 +0000 (09:34 +1000)
remove unneeded "alloc failed" printks

Cc: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/damon/dbgfs.c

index 322f624710d7cbe8295c0c361cf2c348da5c89bd..5e2c9b5e7eaceb1967a66ff84b74bec7374d7b30 100644 (file)
@@ -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;