[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211108101157.15189-39-bp@alien8.de>
Date: Mon, 8 Nov 2021 11:11:53 +0100
From: Borislav Petkov <bp@...en8.de>
To: LKML <linux-kernel@...r.kernel.org>
Cc: linux-xtensa@...ux-xtensa.org
Subject: [PATCH v0 38/42] xtensa: Check notifier registration return value
From: Borislav Petkov <bp@...e.de>
Avoid homegrown notifier registration checks.
No functional changes.
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: linux-xtensa@...ux-xtensa.org
---
arch/xtensa/platforms/iss/setup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c
index d3433e1bb94e..00b847e3cb76 100644
--- a/arch/xtensa/platforms/iss/setup.c
+++ b/arch/xtensa/platforms/iss/setup.c
@@ -81,5 +81,6 @@ void __init platform_setup(char **p_cmdline)
}
}
- atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block);
+ if (atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block))
+ pr_warn("Panic notifier already registered\n");
}
--
2.29.2
Powered by blists - more mailing lists