diff mbox series

[1/2] ARM: Delete an error message for a failed memory allocation in init_atags_procfs()

Message ID 52ec07cb-82bf-9a04-da79-62d19015212d@web.de (mailing list archive)
State New, archived
Headers show
Series ARM: Adjustments for init_atags_procfs() | expand

Commit Message

Markus Elfring March 28, 2023, 5:15 p.m. UTC
Date: Tue, 28 Mar 2023 18:40:26 +0200

Omit an extra message for a memory allocation failure in this function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 arch/arm/kernel/atags_proc.c | 2 --
 1 file changed, 2 deletions(-)

--
2.40.0
diff mbox series

Patch

diff --git a/arch/arm/kernel/atags_proc.c b/arch/arm/kernel/atags_proc.c
index 3ec2afe78423..2f08ab08e68f 100644
--- a/arch/arm/kernel/atags_proc.c
+++ b/arch/arm/kernel/atags_proc.c
@@ -69,8 +69,6 @@  static int __init init_atags_procfs(void)

 nomem:
 	kfree(b);
-	pr_err("Exporting ATAGs: not enough memory\n");
-
 	return -ENOMEM;
 }
 arch_initcall(init_atags_procfs);