summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-10 15:11:19 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-11-10 21:40:02 +0200
commit5c6426eff87049c9f8e49877f650772840907239 (patch)
treee39822dfb02e412bce0a1fe5dc630e9d54028e0f
parent438ab01b43075b715345df0d85447aaf338fd4fc (diff)
Code cleanup.
-rw-r--r--src/device.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c
index b7c17bb8..f8c5a3fd 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1166,9 +1166,6 @@ int device_browse(struct btd_device *device, DBusConnection *conn,
req->conn = conn ? dbus_connection_ref(conn) : get_dbus_connection();
- if (msg)
- req->msg = dbus_message_ref(msg);
-
req->device = device;
if (search) {
@@ -1183,6 +1180,7 @@ int device_browse(struct btd_device *device, DBusConnection *conn,
device->discov_active = 1;
if (msg) {
+ req->msg = dbus_message_ref(msg);
device->discov_requestor = g_strdup(dbus_message_get_sender(msg));
/* Track the request owner to cancel it
* automatically if the owner exits */