Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
string: introduce helper to get base file name from given path
There are several places in the kernel that use functionality like basename(3) with the exception: in case of '/foo/bar/' we expect to get an empty string. Let's do it common helper for them. Signed-off-by: Andy Shevchenko <[email protected]> Cc: Jason Baron <[email protected]> Cc: YAMANE Toshiaki <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information