]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: rts_pstor: use kbasename()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 25 Oct 2012 01:15:05 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 03:14:46 +0000 (14:14 +1100)
commitf98d039c312d28b2161bf534d8232d74aaf2b945
tree0cc3cf9234581028f8ce5df20472a752e4429661
parentfebda70fb2baaba4c22cd47af769cddf4edd654c
staging: rts_pstor: use kbasename()

The custom filename function mostly repeats the kernel's kbasename. This patch
simplifies it. The updated filename() will not check for the '\' in the
filenames. It seems redundant in Linux. The __FILE__ macro always defined if
we compile an existing file. Thus, NULL check is not needed there as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: YAMANE Toshiaki <yamanetoshi@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/staging/rts_pstor/trace.h