projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
um: don't compare a pointer to 0
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
lib
/
dynamic_debug.c
diff --git
a/lib/dynamic_debug.c
b/lib/dynamic_debug.c
index
e7f7d99
..
1db1fc6
100644
(file)
--- a/
lib/dynamic_debug.c
+++ b/
lib/dynamic_debug.c
@@
-62,13
+62,6
@@
static LIST_HEAD(ddebug_tables);
static int verbose = 0;
module_param(verbose, int, 0644);
static int verbose = 0;
module_param(verbose, int, 0644);
-/* Return the last part of a pathname */
-static inline const char *basename(const char *path)
-{
- const char *tail = strrchr(path, '/');
- return tail ? tail+1 : path;
-}
-
/* Return the path relative to source root */
static inline const char *trim_prefix(const char *path)
{
/* Return the path relative to source root */
static inline const char *trim_prefix(const char *path)
{
@@
-154,7
+147,7
@@
static int ddebug_change(const struct ddebug_query *query,
/* match against the source filename */
if (query->filename &&
strcmp(query->filename, dp->filename) &&
/* match against the source filename */
if (query->filename &&
strcmp(query->filename, dp->filename) &&
- strcmp(query->filename, basename(dp->filename)) &&
+ strcmp(query->filename,
k
basename(dp->filename)) &&
strcmp(query->filename, trim_prefix(dp->filename)))
continue;
strcmp(query->filename, trim_prefix(dp->filename)))
continue;