diff options
Diffstat (limited to 'modules/devices/battery.c')
-rw-r--r-- | modules/devices/battery.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/devices/battery.c b/modules/devices/battery.c index 53fca740..d6d95255 100644 --- a/modules/devices/battery.c +++ b/modules/devices/battery.c @@ -291,9 +291,7 @@ __scan_battery_apm(void) void scan_battery_do(void) { - if (battery_list) { - g_free(battery_list); - } + g_free(battery_list); battery_list = g_strdup(""); __scan_battery_acpi(); |