From a19d0d18576597f5214ba32b0331461876eeaba1 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Mon, 22 Apr 2013 13:26:59 +0400 Subject: [PATCH] [REFACTOR] remove 'struct hlist_head otg_kernel_probes' it is not used --- driver/probes_manager.c | 8 -------- driver/storage.c | 2 -- driver/storage.h | 3 --- 3 files changed, 13 deletions(-) diff --git a/driver/probes_manager.c b/driver/probes_manager.c index 1ab4db4..e5d403e 100644 --- a/driver/probes_manager.c +++ b/driver/probes_manager.c @@ -107,9 +107,6 @@ detach_selected_probes (void) swap_hlist_for_each_entry_rcu (p, node, &kernel_probes, hlist) unregister_kernel_probe (p); - swap_hlist_for_each_entry_rcu (p, node, &otg_kernel_probes, hlist) { - unregister_kernel_probe(p); - } return 0; } @@ -142,11 +139,6 @@ int reset_probes(void) kfree(p); } - swap_hlist_for_each_entry_safe (p, node, tnode, &otg_kernel_probes, hlist) { - hlist_del(node); - kfree(p); - } - return 0; } diff --git a/driver/storage.c b/driver/storage.c index b3f9e9e..602844d 100644 --- a/driver/storage.c +++ b/driver/storage.c @@ -40,7 +40,6 @@ char *deps; char *bundle; unsigned int inst_pid = 0; struct hlist_head kernel_probes; -struct hlist_head otg_kernel_probes; int event_mask = 0L; struct cond cond_list; int paused = 0; /* a state after a stop condition (events are not collected) */ @@ -1079,7 +1078,6 @@ int storage_init (void) } INIT_HLIST_HEAD(&kernel_probes); - INIT_HLIST_HEAD(&otg_kernel_probes); spin_lock_init(&dbi_mh.lock); INIT_LIST_HEAD(&dbi_mh.modules_handlers); diff --git a/driver/storage.h b/driver/storage.h index dfff677..07c3673 100644 --- a/driver/storage.h +++ b/driver/storage.h @@ -133,9 +133,6 @@ extern int dbi_register_handlers_module(struct dbi_modules_handlers_info *dbi_mh extern int dbi_unregister_handlers_module(struct dbi_modules_handlers_info *dbi_mhi); //unsigned long get_dbi_modules_handlers(void);*/ -/* list of on-the-go installed kernel probes */ -extern struct hlist_head otg_kernel_probes; - // event mask extern int event_mask; -- 2.7.4