summaryrefslogtreecommitdiff
path: root/src/linux/up-device-supply.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-11-29 15:42:24 +0000
committerRichard Hughes <richard@hughsie.com>2011-11-29 15:42:24 +0000
commitc7cf8aa16ab378eab765a83ab406c3bf7bb8732c (patch)
tree6ec68fba41b60ebdcd73f8127db570bca3142c27 /src/linux/up-device-supply.c
parent3901d902fd5cd262cb303fd0e966770c19fb389f (diff)
downloadupower-c7cf8aa16ab378eab765a83ab406c3bf7bb8732c.tar.gz
Don't assert when the power_supply device type is usb
Diffstat (limited to 'src/linux/up-device-supply.c')
-rw-r--r--src/linux/up-device-supply.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 935fe13..56b6cf2 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -953,16 +953,13 @@ up_device_supply_refresh (UpDevice *device)
case UP_DEVICE_KIND_LINE_POWER:
ret = up_device_supply_refresh_line_power (supply);
break;
- case UP_DEVICE_KIND_BATTERY:
+ default:
ret = up_device_supply_refresh_battery (supply);
/* Seems that we don't get change uevents from the
* kernel on some BIOS types */
up_device_supply_setup_poll (device);
break;
- default:
- g_assert_not_reached ();
- break;
}
/* reset time if we got new data */