Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Remove unnecessary code from pin handler
@ 2011-04-10 15:48 David Herrmann
  2011-04-14 17:04 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: David Herrmann @ 2011-04-10 15:48 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: johan.hedberg, David Herrmann

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-14 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10 15:48 [PATCH] Remove unnecessary code from pin handler David Herrmann
2011-04-14 17:04 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox