diff options
Diffstat (limited to 'src/dkp-hid.c')
-rw-r--r-- | src/dkp-hid.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dkp-hid.c b/src/dkp-hid.c index 4816388..e61bc67 100644 --- a/src/dkp-hid.c +++ b/src/dkp-hid.c @@ -303,10 +303,8 @@ dkp_hid_coldplug (DkpDevice *device) /* get the type */ type = devkit_device_get_property (d, "DKP_BATTERY_TYPE"); - if (type == NULL || !egg_strequal (type, "ups")) { - egg_debug ("not a UPS device"); + if (type == NULL || !egg_strequal (type, "ups")) goto out; - } /* get the device file */ device_file = devkit_device_get_device_file (d); |