diff options
author | Richard Hughes <richard@hughsie.com> | 2011-11-29 15:42:24 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-11-29 15:42:24 +0000 |
commit | c7cf8aa16ab378eab765a83ab406c3bf7bb8732c (patch) | |
tree | 6ec68fba41b60ebdcd73f8127db570bca3142c27 /src/linux/up-device-supply.c | |
parent | 3901d902fd5cd262cb303fd0e966770c19fb389f (diff) | |
download | upower-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.c | 5 |
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 */ |