[PATCH 11/12] cups: Remove dead code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 profiles/cups/main.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/profiles/cups/main.c b/profiles/cups/main.c
index 2079812..11ce72f 100644
--- a/profiles/cups/main.c
+++ b/profiles/cups/main.c
@@ -332,13 +332,11 @@ static gboolean device_is_printer(const char *adapter, const char *device_path,
 static void remote_device_found(const char *adapter, const char *bdaddr,
 							const char *name)
 {
-	DBusMessage *message, *reply, *adapter_reply;
+	DBusMessage *message, *reply;
 	DBusMessageIter iter;
 	char *object_path = NULL;
 	char *id;
 
-	adapter_reply = NULL;
-
 	assert(adapter != NULL);
 
 	message = dbus_message_new_method_call("org.bluez", adapter,
@@ -347,9 +345,6 @@ static void remote_device_found(const char *adapter, const char *bdaddr,
 	dbus_message_iter_init_append(message, &iter);
 	dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &bdaddr);
 
-	if (adapter_reply != NULL)
-		dbus_message_unref(adapter_reply);
-
 	reply = dbus_connection_send_with_reply_and_block(conn,
 							message, -1, NULL);
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux