[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-24ed0c4bfc7d2d7507bb9d50f7f3bbdcd85d76dd@git.kernel.org>
Date: Mon, 18 May 2009 09:06:34 GMT
From: tip-bot for Ming Lei <tom.leiming@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
fweisbec@...il.com, lizf@...fujitsu.com, tglx@...utronix.de,
tom.leiming@...il.com, mingo@...e.hu
Subject: [tip:tracing/core] tracing: fix check for return value of register_module_notifier
Commit-ID: 24ed0c4bfc7d2d7507bb9d50f7f3bbdcd85d76dd
Gitweb: http://git.kernel.org/tip/24ed0c4bfc7d2d7507bb9d50f7f3bbdcd85d76dd
Author: Ming Lei <tom.leiming@...il.com>
AuthorDate: Sun, 17 May 2009 15:31:38 +0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Mon, 18 May 2009 10:24:13 +0200
tracing: fix check for return value of register_module_notifier
return zero should be correct, so fix it.
[ Impact: eliminate incorrect syslog message ]
Signed-off-by: Ming Lei <tom.leiming@...il.com>
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
Acked-by: Li Zefan <lizf@...fujitsu.com>
Cc: rostedt@...dmis.org
LKML-Reference: <1242545498-7285-1-git-send-email-tom.leiming@...il.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/trace/ftrace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 5b606f4..140699a 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2826,7 +2826,7 @@ void __init ftrace_init(void)
__stop_mcount_loc);
ret = register_module_notifier(&ftrace_module_nb);
- if (!ret)
+ if (ret)
pr_warning("Failed to register trace ftrace module notifier\n");
return;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists