From 6dd233f435a73af2875484a88684252689e900d9 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sun, 4 Aug 2013 12:46:02 +0400 Subject: CONFIG_PANIC_HANG: replace #ifdef with IS_ENABLED() Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- lib/vsprintf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/vsprintf.c') diff --git a/lib/vsprintf.c b/lib/vsprintf.c index d93134053a..c73db73e88 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -630,11 +630,11 @@ void __noreturn panic(const char *fmt, ...) led_trigger(LED_TRIGGER_PANIC, TRIGGER_ENABLE); -#if defined (CONFIG_PANIC_HANG) - hang(); -#else - udelay(100000); /* allow messages to go out */ - reset_cpu(0); -#endif + if (IS_ENABLED(CONFIG_PANIC_HANG)) { + hang(); + } else { + udelay(100000); /* allow messages to go out */ + reset_cpu(0); + } } EXPORT_SYMBOL(panic); -- cgit v1.2.3