diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2012-01-15 19:04:16 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2012-01-15 19:10:36 -0200 |
commit | 0df66e809f9149842ad2e6752a040a23c22c7ebb (patch) | |
tree | 3feb723c43f18484893e6961d0b5110d3ea8c4a9 /modules/devices/battery.c | |
parent | 03eb46be1b95bf1eaeb33aa169b9689a0b3004ac (diff) |
Remove more sightings of if (ptr) { free(ptr) }
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(); |