mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-14 11:19:08 +10:00
tracing/filters: Fix coding style issues
Recent commits have introduced some coding style issues, fix those up. Link: https://lkml.kernel.org/r/20230901151039.125186-5-vschneid@redhat.com Cc: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
parent
2900bcbee3
commit
cbb557ba92
@ -1360,7 +1360,7 @@ int filter_assign_type(const char *type)
|
|||||||
return FILTER_DYN_STRING;
|
return FILTER_DYN_STRING;
|
||||||
if (strstr(type, "cpumask_t"))
|
if (strstr(type, "cpumask_t"))
|
||||||
return FILTER_CPUMASK;
|
return FILTER_CPUMASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(type, "__rel_loc") && strstr(type, "char"))
|
if (strstr(type, "__rel_loc") && strstr(type, "char"))
|
||||||
return FILTER_RDYN_STRING;
|
return FILTER_RDYN_STRING;
|
||||||
@ -1731,7 +1731,9 @@ static int parse_pred(const char *str, void *data,
|
|||||||
maskstart = i;
|
maskstart = i;
|
||||||
|
|
||||||
/* Walk the cpulist until closing } */
|
/* Walk the cpulist until closing } */
|
||||||
for (; str[i] && str[i] != '}'; i++);
|
for (; str[i] && str[i] != '}'; i++)
|
||||||
|
;
|
||||||
|
|
||||||
if (str[i] != '}') {
|
if (str[i] != '}') {
|
||||||
parse_error(pe, FILT_ERR_MISSING_BRACE_CLOSE, pos + i);
|
parse_error(pe, FILT_ERR_MISSING_BRACE_CLOSE, pos + i);
|
||||||
goto err_free;
|
goto err_free;
|
||||||
|
Loading…
Reference in New Issue
Block a user