Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Víctor Manuel Jáquez Leal and committed by
Greg Kroah-Hartman
d111f6e9 52041338

+2 -30
-18
drivers/staging/tidspbridge/gen/gh.c
··· 95 95 } 96 96 97 97 /* 98 - * ======== gh_exit ======== 99 - */ 100 - 101 - void gh_exit(void) 102 - { 103 - /* Do nothing */ 104 - } 105 - 106 - /* 107 98 * ======== gh_find ======== 108 99 */ 109 100 ··· 110 119 } 111 120 112 121 return NULL; 113 - } 114 - 115 - /* 116 - * ======== gh_init ======== 117 - */ 118 - 119 - void gh_init(void) 120 - { 121 - /* Do nothing */ 122 122 } 123 123 124 124 /*
-2
drivers/staging/tidspbridge/include/dspbridge/gh.h
··· 23 23 bool(*match) (void *, void *), 24 24 void (*delete) (void *)); 25 25 extern void gh_delete(struct gh_t_hash_tab *hash_tab); 26 - extern void gh_exit(void); 27 26 extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key); 28 - extern void gh_init(void); 29 27 extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value); 30 28 #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE 31 29 void gh_iterate(struct gh_t_hash_tab *hash_tab,
+2 -10
drivers/staging/tidspbridge/pmgr/dbll.c
··· 187 187 static bool name_match(void *key, void *sp); 188 188 static void sym_delete(void *value); 189 189 190 - static u32 refs; /* module reference count */ 191 - 192 190 /* Symbol Redefinition */ 193 191 static int redefined_symbol; 194 192 static int gbl_search = 1; ··· 266 268 */ 267 269 void dbll_exit(void) 268 270 { 269 - refs--; 270 - 271 - if (refs == 0) 272 - gh_exit(); 271 + /* do nothing */ 273 272 } 274 273 275 274 /* ··· 389 394 */ 390 395 bool dbll_init(void) 391 396 { 392 - if (refs == 0) 393 - gh_init(); 394 - 395 - refs++; 397 + /* do nothing */ 396 398 397 399 return true; 398 400 }