summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2007-06-26 11:33:09 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2007-06-26 11:33:09 +0000
commitdc0dc11b13fe59650af05e18f0d2bf217ae8f4bc (patch)
tree959039a6b18b04a52076a6b675dad558d5c4bfea /lib/init.c
parentee680dc946797a37093823ae9961658a32e10048 (diff)
downloadlm-sensors-dc0dc11b13fe59650af05e18f0d2bf217ae8f4bc.tar.gz
struct sensors_proc_chips_entry now has a single member, so we may
as well use this member directly for slightly more simple code. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4474 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/init.c b/lib/init.c
index 79492e9f..dfc4cdf8 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -27,7 +27,6 @@
#include "sysfs.h"
#include "scanner.h"
-static void free_proc_chips_entry(sensors_proc_chips_entry entry);
static void free_chip_name(sensors_chip_name name);
static void free_bus(sensors_bus bus);
static void free_chip(sensors_chip chip);
@@ -61,7 +60,7 @@ void sensors_cleanup(void)
sensors_scanner_exit();
for (i = 0; i < sensors_proc_chips_count; i++)
- free_proc_chips_entry(sensors_proc_chips[i]);
+ free_chip_name(sensors_proc_chips[i]);
free(sensors_proc_chips);
sensors_proc_chips = NULL;
sensors_proc_chips_count = sensors_proc_chips_max = 0;
@@ -85,11 +84,6 @@ void sensors_cleanup(void)
sensors_proc_bus_count = sensors_proc_bus_max = 0;
}
-void free_proc_chips_entry(sensors_proc_chips_entry entry)
-{
- free_chip_name(entry.name);
-}
-
void free_chip_name(sensors_chip_name name)
{
free(name.prefix);