aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2015-12-10 16:49:14 +0200
committerGreg Kroah-Hartman <[email protected]>2016-01-24 20:37:47 -0800
commitf8868ed0078a8456ac725103a97cbe6d833e13f3 (patch)
treee4965335c3a8faf015011ad3d078280505892695 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent6f5429d986f81a5c16d451c5d63d829a785f470a (diff)
usb: core: use kbasename() instead of open-coded variant
kbasename() helper is dedicated to find a last part of the filename or pathname. USB core uses open-coded variant of that helper. Replace some lines of code by kbasename() call. The current users do not have trailing slash and we are on the safe side to make such change. I dig a history of the code under question up and found the patch [1] that brought it along with the same to tty layer. The check for trailing slash looks like copy'n'paste thing and I consider it as redundant. [1] http://www.kernel.org/pub/linux/kernel//people/akpm/patches/2.5/2.5.69/2.5.69-mm3/broken-out/linus.patch Signed-off-by: Andy Shevchenko <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Rasmus Villemoes <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions