diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-10-18 17:27:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-10-18 17:27:37 +0000 |
commit | c2303e8ff20b547b9adb4fe5c519b431966672f5 (patch) | |
tree | 4746ceac96215d3096aebcb24df614f7da94f8a2 | |
parent | 4361eadeb306f67569608d6ed993c9ff1fac69d0 (diff) | |
download | ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.gz ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.bz2 ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.xz ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.zip |
kill now useless free_*() functions
-rw-r--r-- | modalias.c | 40 |
1 files changed, 0 insertions, 40 deletions
@@ -25,46 +25,6 @@ static void get_version(void) { version = strdup(buf.release); } -static void free_aliases(struct module_alias *aliases) { - if (aliases == NULL) - return; - while (aliases->next) { - struct module_alias *next; - next = aliases->next; - free(aliases->module); - free(aliases); - aliases = next; - } - free(aliases); -} - -static void free_options(struct module_options *modoptions) { - if (modoptions == NULL) - return; - while (modoptions->next) { - struct module_options *next; - next = modoptions->next; - free(modoptions->modulename); - free(modoptions->options); - free(modoptions); - modoptions = next; - } - free(modoptions); -} - -static void free_commands(struct module_command *commands) { - if (commands == NULL) - return; - while (commands->next) { - struct module_command *next; - next = commands->next; - free(commands->modulename); - free(commands->command); - free(commands); - commands = next; - } - free(commands); -} static void free_blacklist(struct module_blacklist *blacklist) { if (blacklist == NULL) |