void functions don't return values
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 13:19:30 +0000 (13:19 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Dec 2012 13:19:30 +0000 (13:19 +0000)
SVN revision: 80845

src/modules/battery/e_mod_udev.c

index 421e511..353c745 100644 (file)
@@ -207,7 +207,10 @@ _battery_udev_battery_update(const char *syspath, Battery *bat)
    if (!bat)
      {
         if (!(bat = _battery_battery_find(syspath)))
-          return _battery_udev_battery_add(syspath);
+          {
+             _battery_udev_battery_add(syspath);
+             return;
+          }
      }
    /* update the poller interval */
    ecore_poller_poller_interval_set(bat->poll, battery_config->poll_interval);
@@ -291,7 +294,10 @@ _battery_udev_ac_update(const char *syspath, Ac_Adapter *ac)
    if (!ac)
      {
         if (!(ac = _battery_ac_adapter_find(syspath)))
-          return _battery_udev_ac_add(syspath);
+          {
+             _battery_udev_ac_add(syspath);
+             return;
+          }
      }
 
    GET_NUM(ac, present, POWER_SUPPLY_ONLINE);