Commit d111f6e9 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Greg Kroah-Hartman

staging: tidspbridge: remove gh_init() and gh_exit()

The gh module has a gh_init() and a gh_exit(), but they don't do
anything, they are just noops.

This patch removes these functions.

There is no functional changes.
Signed-off-by: default avatarVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 52041338
...@@ -94,15 +94,6 @@ void gh_delete(struct gh_t_hash_tab *hash_tab) ...@@ -94,15 +94,6 @@ void gh_delete(struct gh_t_hash_tab *hash_tab)
} }
} }
/*
* ======== gh_exit ========
*/
void gh_exit(void)
{
/* Do nothing */
}
/* /*
* ======== gh_find ======== * ======== gh_find ========
*/ */
...@@ -121,15 +112,6 @@ void *gh_find(struct gh_t_hash_tab *hash_tab, void *key) ...@@ -121,15 +112,6 @@ void *gh_find(struct gh_t_hash_tab *hash_tab, void *key)
return NULL; return NULL;
} }
/*
* ======== gh_init ========
*/
void gh_init(void)
{
/* Do nothing */
}
/* /*
* ======== gh_insert ======== * ======== gh_insert ========
*/ */
......
...@@ -23,9 +23,7 @@ extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size, ...@@ -23,9 +23,7 @@ extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
bool(*match) (void *, void *), bool(*match) (void *, void *),
void (*delete) (void *)); void (*delete) (void *));
extern void gh_delete(struct gh_t_hash_tab *hash_tab); extern void gh_delete(struct gh_t_hash_tab *hash_tab);
extern void gh_exit(void);
extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key); extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key);
extern void gh_init(void);
extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value); extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value);
#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
void gh_iterate(struct gh_t_hash_tab *hash_tab, void gh_iterate(struct gh_t_hash_tab *hash_tab,
......
...@@ -187,8 +187,6 @@ static u16 name_hash(void *key, u16 max_bucket); ...@@ -187,8 +187,6 @@ static u16 name_hash(void *key, u16 max_bucket);
static bool name_match(void *key, void *sp); static bool name_match(void *key, void *sp);
static void sym_delete(void *value); static void sym_delete(void *value);
static u32 refs; /* module reference count */
/* Symbol Redefinition */ /* Symbol Redefinition */
static int redefined_symbol; static int redefined_symbol;
static int gbl_search = 1; static int gbl_search = 1;
...@@ -268,10 +266,7 @@ void dbll_delete(struct dbll_tar_obj *target) ...@@ -268,10 +266,7 @@ void dbll_delete(struct dbll_tar_obj *target)
*/ */
void dbll_exit(void) void dbll_exit(void)
{ {
refs--; /* do nothing */
if (refs == 0)
gh_exit();
} }
/* /*
...@@ -394,10 +389,7 @@ int dbll_get_sect(struct dbll_library_obj *lib, char *name, u32 *paddr, ...@@ -394,10 +389,7 @@ int dbll_get_sect(struct dbll_library_obj *lib, char *name, u32 *paddr,
*/ */
bool dbll_init(void) bool dbll_init(void)
{ {
if (refs == 0) /* do nothing */
gh_init();
refs++;
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment