Commit 3dee10da authored by Frank Rowand's avatar Frank Rowand Committed by Steven Rostedt (VMware)

tracing: initialize variable in create_dyn_event()

Fix compile warning in create_dyn_event(): 'ret' may be used uninitialized
in this function [-Wuninitialized].

Link: http://lkml.kernel.org/r/1553237900-8555-1-git-send-email-frowand.list@gmail.com

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Fixes: 5448d44c ("tracing: Add unified dynamic event framework")
Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent ff9d31d0
...@@ -74,7 +74,7 @@ int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type) ...@@ -74,7 +74,7 @@ int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type)
static int create_dyn_event(int argc, char **argv) static int create_dyn_event(int argc, char **argv)
{ {
struct dyn_event_operations *ops; struct dyn_event_operations *ops;
int ret; int ret = -ENODEV;
if (argv[0][0] == '-' || argv[0][0] == '!') if (argv[0][0] == '-' || argv[0][0] == '!')
return dyn_event_release(argc, argv, NULL); return dyn_event_release(argc, argv, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment