From c2303e8ff20b547b9adb4fe5c519b431966672f5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Oct 2011 17:27:37 +0000 Subject: kill now useless free_*() functions --- modalias.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/modalias.c b/modalias.c index 868fa43..2573839 100644 --- a/modalias.c +++ b/modalias.c @@ -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) -- cgit v1.2.1