Skip to content

Commit

Permalink
tracing/filters: Fix coding style issues
Browse files Browse the repository at this point in the history
Recent commits have introduced some coding style issues, fix those up.

Link: https://lkml.kernel.org/r/[email protected]

Cc: Masami Hiramatsu <[email protected]>
Signed-off-by: Valentin Schneider <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
  • Loading branch information
valschneider authored and rostedt committed Sep 2, 2023
1 parent 2900bcb commit cbb557b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ int filter_assign_type(const char *type)
return FILTER_DYN_STRING;
if (strstr(type, "cpumask_t"))
return FILTER_CPUMASK;
}
}

if (strstr(type, "__rel_loc") && strstr(type, "char"))
return FILTER_RDYN_STRING;
Expand Down Expand Up @@ -1731,7 +1731,9 @@ static int parse_pred(const char *str, void *data,
maskstart = i;

/* Walk the cpulist until closing } */
for (; str[i] && str[i] != '}'; i++);
for (; str[i] && str[i] != '}'; i++)
;

if (str[i] != '}') {
parse_error(pe, FILT_ERR_MISSING_BRACE_CLOSE, pos + i);
goto err_free;
Expand Down

0 comments on commit cbb557b

Please sign in to comment.