Skip to content

Commit bfcd631

Browse files
Colin Ian Kingrostedt
authored andcommitted
tracing: Fix white space issues in parse_pred() function
Trivial fix to clean up an indentation issue, a whole chunk of code has an extra space in the indentation. Link: http://lkml.kernel.org/r/20181109132312.20994-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 0f5e5a3 commit bfcd631

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

‎kernel/trace/trace_events_filter.c‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,30 +1222,30 @@ static int parse_pred(const char *str, void *data,
12221222
* (perf doesn't use it) and grab everything.
12231223
*/
12241224
if (strcmp(field->name, "ip") != 0) {
1225-
parse_error(pe, FILT_ERR_IP_FIELD_ONLY, pos + i);
1226-
goto err_free;
1227-
}
1228-
pred->fn = filter_pred_none;
1229-
1230-
/*
1231-
* Quotes are not required, but if they exist then we need
1232-
* to read them till we hit a matching one.
1233-
*/
1234-
if (str[i] == '\'' || str[i] == '"')
1235-
q = str[i];
1236-
else
1237-
q = 0;
1238-
1239-
for (i++; str[i]; i++) {
1240-
if (q && str[i] == q)
1241-
break;
1242-
if (!q && (str[i] == ')' || str[i] == '&' ||
1243-
str[i] == '|'))
1244-
break;
1245-
}
1246-
/* Skip quotes */
1247-
if (q)
1248-
s++;
1225+
parse_error(pe, FILT_ERR_IP_FIELD_ONLY, pos + i);
1226+
goto err_free;
1227+
}
1228+
pred->fn = filter_pred_none;
1229+
1230+
/*
1231+
* Quotes are not required, but if they exist then we need
1232+
* to read them till we hit a matching one.
1233+
*/
1234+
if (str[i] == '\'' || str[i] == '"')
1235+
q = str[i];
1236+
else
1237+
q = 0;
1238+
1239+
for (i++; str[i]; i++) {
1240+
if (q && str[i] == q)
1241+
break;
1242+
if (!q && (str[i] == ')' || str[i] == '&' ||
1243+
str[i] == '|'))
1244+
break;
1245+
}
1246+
/* Skip quotes */
1247+
if (q)
1248+
s++;
12491249
len = i - s;
12501250
if (len >= MAX_FILTER_STR_VAL) {
12511251
parse_error(pe, FILT_ERR_OPERAND_TOO_LONG, pos + i);

0 commit comments

Comments
 (0)