From 0df66e809f9149842ad2e6752a040a23c22c7ebb Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 15 Jan 2012 19:04:16 -0200 Subject: Remove more sightings of if (ptr) { free(ptr) } --- modules/devices/battery.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/devices') 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(); -- cgit v1.2.3