linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] device: Remove not used variable from search_cb
@ 2012-10-02 11:12 Szymon Janc
  2012-10-02 11:39 ` [PATCH] device: Remove not used variables " Szymon Janc
  0 siblings, 1 reply; 3+ messages in thread
From: Szymon Janc @ 2012-10-02 11:12 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

dba is not used in function code.

---
 src/device.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/device.c b/src/device.c
index ab9e897..cb6812a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1802,13 +1802,8 @@ send_reply:
 	}
 
 cleanup:
-	if (!device->temporary) {
-		bdaddr_t dba;
-
-		device_get_address(device, &dba, NULL);
-
+	if (!device->temporary)
 		store_profiles(device);
-	}
 
 	device->browse = NULL;
 	browse_request_free(req);
-- 
1.7.9.5


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

* [PATCH] device: Remove not used variables from search_cb
  2012-10-02 11:12 [PATCH] device: Remove not used variable from search_cb Szymon Janc
@ 2012-10-02 11:39 ` Szymon Janc
  2012-10-02 12:07   ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Szymon Janc @ 2012-10-02 11:39 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

sda and dba are not used in function code.

---
 src/device.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/device.c b/src/device.c
index c41b0c8..fb7c4f8 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1818,14 +1818,8 @@ send_reply:
 	}
 
 cleanup:
-	if (!device->temporary) {
-		bdaddr_t sba, dba;
-
-		adapter_get_address(device->adapter, &sba);
-		device_get_address(device, &dba, NULL);
-
+	if (!device->temporary)
 		store_profiles(device);
-	}
 
 	device->browse = NULL;
 	browse_request_free(req);
-- 
1.7.9.5


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

* Re: [PATCH] device: Remove not used variables from search_cb
  2012-10-02 11:39 ` [PATCH] device: Remove not used variables " Szymon Janc
@ 2012-10-02 12:07   ` Johan Hedberg
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-10-02 12:07 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth

Hi Szymon,

On Tue, Oct 02, 2012, Szymon Janc wrote:
> sda and dba are not used in function code.
> 
> ---
>  src/device.c |    8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2012-10-02 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 11:12 [PATCH] device: Remove not used variable from search_cb Szymon Janc
2012-10-02 11:39 ` [PATCH] device: Remove not used variables " Szymon Janc
2012-10-02 12:07   ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).