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>
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;