goto out;
if (battery_dev && battery_dev->get_current_state) {
- ret = battery_dev->get_current_state(battery_get_info, &info);
- if (ret < 0)
- _E("Failed to get battery info: %d", ret);
+ ret = battery_dev->get_current_state(battery_get_info, &info);
+ if (ret < 0)
+ _E("Failed to get battery info: %d", ret);
- battery_changed(&info, NULL);
- free(info.status);
- free(info.health);
- free(info.power_source);
+ battery_changed(&info, NULL);
+ free(info.status);
+ free(info.health);
+ free(info.power_source);
} else {
if (vconf_get_int(VCONFKEY_SYSMAN_USB_STATUS, &val) == 0 &&
val != VCONFKEY_SYSMAN_USB_DISCONNECTED)