kernel: trace: Remove compile warning.
Philip Rakity [Mon, 8 Jul 2013 11:40:13 +0000 (12:40 +0100)]
warning is bogus but since code is not used frequently
just set ret to avoid warning.

Change-Id: Icd3b47f2e95982cea2019e93c5fc1c69c64852dd
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246102
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

kernel/trace/trace_events_filter.c

index 431dba8..006d5c9 100644 (file)
@@ -2002,7 +2002,7 @@ static int ftrace_function_set_regexp(struct ftrace_ops *ops, int filter,
 static int __ftrace_function_set_filter(int filter, char *buf, int len,
                                        struct function_filter_data *data)
 {
-       int i, re_cnt, ret;
+       int i, re_cnt, ret = 0;
        int *reset;
        char **re;