diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-06 13:35:07 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-06 13:35:07 +0000 |
commit | 8955dc1ce35be8c0ef70b0faa8846c2bf4b6de9f (patch) | |
tree | a0dd884d86173568a201ce011b7a352ff9d81087 /hcid/adapter.c | |
parent | 5a63456081d0ba9cc8bdc66f17afe003788c9b33 (diff) |
More cleanups and less casting
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r-- | hcid/adapter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index e62508d1..d0226db5 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -2450,8 +2450,9 @@ void adapter_remove_device(DBusConnection *conn, struct adapter *adapter, device->agent = NULL; } - device_remove(device, conn); adapter->devices = g_slist_remove(adapter->devices, device); + + device_remove(conn, device); } struct device *adapter_get_device(DBusConnection *conn, |