aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-04-10 17:48:11 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2011-04-14 20:04:22 +0300
commit6baed021cd50f051741d17881c44dc788b681e93 (patch)
tree6bc2d8b4ac0ec5beb8679f259a39f8179fa18a9a /src/event.c
parentf6a34aa79b36995707f4f6cf29393cbbe602ac47 (diff)
downloadbluez-6baed021cd50f051741d17881c44dc788b681e93.tar.gz
bluez-6baed021cd50f051741d17881c44dc788b681e93.tar.xz
bluez-6baed021cd50f051741d17881c44dc788b681e93.zip
Remove unnecessary code from pin handler
The source address is not used inside the pin handler and, thus, can be skipped.
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/event.c b/src/event.c
index 4ca1be5e..5373e333 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: