* [PATCH BlueZ v2] core: Remove unused variable
@ 2012-05-11 15:45 Paulo Alcantara
2012-05-16 7:50 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Paulo Alcantara @ 2012-05-11 15:45 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Paulo Alcantara
"srcaddr" variable is not used for anything else in
btd_event_remote_name() function. So, remove it for now.
---
src/event.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/event.c b/src/event.c
index 514744b..8ecb942 100644
--- a/src/event.c
+++ b/src/event.c
@@ -318,7 +318,6 @@ void btd_event_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class)
void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name)
{
struct btd_adapter *adapter;
- char srcaddr[18];
struct btd_device *device;
struct remote_dev_info *dev_info;
@@ -339,8 +338,6 @@ void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name)
if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE))
return;
- ba2str(local, srcaddr);
-
dev_info = adapter_search_found_devices(adapter, peer);
if (dev_info) {
g_free(dev_info->name);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ v2] core: Remove unused variable
2012-05-11 15:45 [PATCH BlueZ v2] core: Remove unused variable Paulo Alcantara
@ 2012-05-16 7:50 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-05-16 7:50 UTC (permalink / raw)
To: Paulo Alcantara; +Cc: linux-bluetooth
Hi Paulo,
On Fri, May 11, 2012, Paulo Alcantara wrote:
> "srcaddr" variable is not used for anything else in
> btd_event_remote_name() function. So, remove it for now.
> ---
> src/event.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-16 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 15:45 [PATCH BlueZ v2] core: Remove unused variable Paulo Alcantara
2012-05-16 7:50 ` 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).