Fix indentation 17/236517/2
authorINSUN PYO <insun.pyo@samsung.com>
Wed, 17 Jun 2020 23:57:21 +0000 (08:57 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 18 Jun 2020 01:40:26 +0000 (01:40 +0000)
Change-Id: I747371c7fca1f3ad0d0df37160180af68f9fd3ff

src/battery/power-supply.c

index 821233a..d153b95 100644 (file)
@@ -1328,14 +1328,14 @@ static GVariant *dbus_get_battery_info(GDBusConnection *conn,
                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)