From: Andy Shevchenko Date: Tue, 18 Dec 2012 00:01:18 +0000 (-0800) Subject: string: introduce helper to get base file name from given path X-Git-Tag: v3.8-rc1~74^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b18888ab256f05626193be955a7a03f01d676f8c;p=pandora-kernel.git 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 Cc: Jason Baron Cc: YAMANE Toshiaki Cc: Greg Kroah-Hartman Cc: Steven Rostedt Cc: Frederic Weisbecker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed