diff --git a/p_apache.c b/p_apache.c index 767e7bb..0021cbe 100644 --- a/p_apache.c +++ b/p_apache.c @@ -134,7 +134,6 @@ static int init(void) return -1; } - int retval = -1; struct conf_tupel *tupel; list_for_each_entry(tupel, §ion->tupel, list) { if (strcmp(tupel->option, "server")) @@ -202,14 +201,8 @@ static int init(void) log_print(LOG_INFO, "p_apache: added server '%s'", entry->name); list_add_tail(&entry->list, &server_list); - - retval = 0; } - - if (retval == -1) - free(rx_buf); - - return retval; + return 0; } static int fini(void) diff --git a/p_mysql.c b/p_mysql.c index 98a04bf..429f474 100644 --- a/p_mysql.c +++ b/p_mysql.c @@ -150,8 +150,6 @@ static int probe(void) static int init(void) { - int retval = -1; - struct conf_section *section; section = config_get_section("p_mysql"); if (section == NULL) { @@ -187,11 +185,8 @@ static int init(void) log_print(LOG_DEBUG, "p_mysql: added server '%s'", entry->name); list_add_tail(&entry->list, &server_list); - - retval = 0; } - - return retval; + return 0; } static int fini(void)