* [PATCH] obexd: Remove dead code
@ 2016-01-05 9:12 Andrei Emeltchenko
0 siblings, 0 replies; only message in thread
From: Andrei Emeltchenko @ 2016-01-05 9:12 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Variables file and name are always NULL making code dead.
---
obexd/src/log.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/obexd/src/log.c b/obexd/src/log.c
index f259728..7c48664 100644
--- a/obexd/src/log.c
+++ b/obexd/src/log.c
@@ -102,20 +102,11 @@ void __obex_log_init(const char *debug, int detach)
{
int option = LOG_NDELAY | LOG_PID;
struct obex_debug_desc *desc;
- const char *name = NULL, *file = NULL;
if (debug != NULL)
enabled = g_strsplit_set(debug, ":, ", 0);
for (desc = __start___debug; desc < __stop___debug; desc++) {
- if (file != NULL || name != NULL) {
- if (g_strcmp0(desc->file, file) == 0) {
- if (desc->name == NULL)
- desc->name = name;
- } else
- file = NULL;
- }
-
if (is_enabled(desc))
desc->flags |= OBEX_DEBUG_FLAG_PRINT;
}
--
2.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-05 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 9:12 [PATCH] obexd: Remove dead code Andrei Emeltchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).