From 239a6dcdccc2566c0b1aa67176c9379b61b2359c Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 2 Oct 2012 11:33:11 +0200 Subject: [PATCH] service: Remove extra memory copying from cancel_authorization src is never read before being overwritten few lines below. --- plugins/service.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/service.c b/plugins/service.c index 45886ac11..d586d7992 100644 --- a/plugins/service.c +++ b/plugins/service.c @@ -662,11 +662,6 @@ static DBusMessage *cancel_authorization(DBusConnection *conn, if (auth == NULL) return btd_error_does_not_exist(msg); - if (serv_adapter->adapter) - adapter_get_address(serv_adapter->adapter, &src); - else - bacpy(&src, BDADDR_ANY); - btd_cancel_authorization(auth->id); reply = btd_error_not_authorized(auth->msg); -- 2.47.3