mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for GuoWen Li <guowen.li.linux@gmail.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
	rostedt@goodmis.org, guowen.li.linux@gmail.com,
	tglx@linutronix.de
Subject: [tip:perf/urgent] ftrace: Fix possible undefined return code
Date: Wed, 8 Jun 2011 18:34:33 GMT	[thread overview]
Message-ID: <tip-0aff1c0cef13b34c17e81a502336fad738151c37@git.kernel.org> (raw)
In-Reply-To: <201106011918.47939.guowen.li.linux@gmail.com>

Commit-ID:  0aff1c0cef13b34c17e81a502336fad738151c37
Gitweb:     http://git.kernel.org/tip/0aff1c0cef13b34c17e81a502336fad738151c37
Author:     GuoWen Li <guowen.li.linux@gmail.com>
AuthorDate: Wed, 1 Jun 2011 19:18:47 +0800
Committer:  Steven Rostedt <rostedt@goodmis.org>
CommitDate: Mon, 6 Jun 2011 22:34:25 -0400

ftrace: Fix possible undefined return code

kernel/trace/ftrace.c: In function 'ftrace_regex_write.clone.15':
kernel/trace/ftrace.c:2743:6: warning: 'ret' may be used uninitialized in this
function

Signed-off-by: GuoWen Li <guowen.li.linux@gmail.com>
Link: http://lkml.kernel.org/r/201106011918.47939.guowen.li.linux@gmail.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 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 1ee417f..204b3eb 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash *hash,
 {
 	char *func, *command, *next = buff;
 	struct ftrace_func_command *p;
-	int ret;
+	int ret = -EINVAL;
 
 	func = strsep(&next, ":");
 

      parent reply	other threads:[~2011-06-08 18:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 11:18 [PATCH] Fix compiler warning in ftrace.c GuoWen Li
2011-06-03  2:45 ` Steven Rostedt
2011-06-03  2:50 ` Steven Rostedt
2011-06-03  4:52   ` Guowen Li
2011-06-08 18:34 ` tip-bot for GuoWen Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-0aff1c0cef13b34c17e81a502336fad738151c37@git.kernel.org \
    --to=guowen.li.linux@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome