[PATCH] Remove unnecessary code from pin handler

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

 



The source address is not used inside the pin handler and, thus,
can be skipped.
---
 src/event.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/event.c b/src/event.c
index 4ca1be5..5373e33 100644
--- a/src/event.c
+++ b/src/event.c
@@ -105,7 +105,7 @@ static void pincode_cb(struct agent *agent, DBusError *derr,
 				const char *pincode, struct btd_device *device)
 {
 	struct btd_adapter *adapter = device_get_adapter(device);
-	bdaddr_t sba, dba;
+	bdaddr_t dba;
 	int err;
 
 	device_get_address(device, &dba);
@@ -121,8 +121,6 @@ static void pincode_cb(struct agent *agent, DBusError *derr,
 	if (err < 0)
 		goto fail;
 
-	adapter_get_address(adapter, &sba);
-
 	return;
 
 fail:
-- 
1.7.4.4

--
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