mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 14:48:01 +02:00
don't get the ID in DkpDevice, we already set it in DkpSource
This commit is contained in:
parent
eed12da295
commit
22dfd9e7db
1 changed files with 0 additions and 5 deletions
|
|
@ -79,17 +79,12 @@ dkp_device_new (DkpDaemon *daemon, DevkitDevice *d)
|
|||
{
|
||||
const gchar *subsys;
|
||||
DkpDevice *device;
|
||||
gchar *id;
|
||||
|
||||
device = NULL;
|
||||
|
||||
subsys = devkit_device_get_subsystem (d);
|
||||
if (strcmp (subsys, "power_supply") == 0) {
|
||||
device = DKP_DEVICE (dkp_source_new (daemon, d));
|
||||
id = dkp_source_get_id (DKP_SOURCE (device));
|
||||
if (id != NULL)
|
||||
dkp_debug ("Using device profile id: %s", id);
|
||||
g_free (id);
|
||||
}
|
||||
return device;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue