aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-12-20 13:20:07 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-12-22 22:51:54 -0500
commitb6b2735514bcd70ad1556a33892a636b20ece671 (patch)
treea51e1477fef62ca3223c272306ab4162ae23cb05 /drivers
parenttracing: Use str_has_prefix() helper for histogram code (diff)
downloadlinux-dev-b6b2735514bcd70ad1556a33892a636b20ece671.tar.xz
linux-dev-b6b2735514bcd70ad1556a33892a636b20ece671.zip
tracing: Use str_has_prefix() instead of using fixed sizes
There are several instances of strncmp(str, "const", 123), where 123 is the strlen of the const string to check if "const" is the prefix of str. But this can be error prone. Use str_has_prefix() instead. Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions