From: Szymon Janc <szymon.janc@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@gmail.com>
Subject: [PATCH 2/2] device: Remove addr from struct probe_data
Date: Sat, 18 Jan 2014 13:51:25 +0100 [thread overview]
Message-ID: <1390049485-23503-2-git-send-email-szymon.janc@gmail.com> (raw)
In-Reply-To: <1390049485-23503-1-git-send-email-szymon.janc@gmail.com>
It is not used anywhere.
---
src/device.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/device.c b/src/device.c
index aa663f7..bcc5561 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2504,7 +2504,6 @@ static bool device_match_profile(struct btd_device *device,
struct probe_data {
struct btd_device *dev;
GSList *uuids;
- char addr[18];
};
static void dev_probe(struct btd_profile *p, void *user_data)
@@ -2579,15 +2578,16 @@ void device_probe_profiles(struct btd_device *device, GSList *uuids)
{
struct probe_data d = { device, uuids };
GSList *l;
+ char addr[18];
- ba2str(&device->bdaddr, d.addr);
+ ba2str(&device->bdaddr, addr);
if (device->blocked) {
- DBG("Skipping profiles for blocked device %s", d.addr);
+ DBG("Skipping profiles for blocked device %s", addr);
goto add_uuids;
}
- DBG("Probing profiles for device %s", d.addr);
+ DBG("Probing profiles for device %s", addr);
btd_profile_foreach(dev_probe, &d);
--
1.8.5.3
next prev parent reply other threads:[~2014-01-18 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 12:51 [PATCH 1/2] agent: Remove not used enum value Szymon Janc
2014-01-18 12:51 ` Szymon Janc [this message]
2014-01-18 13:20 ` Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390049485-23503-2-git-send-email-szymon.janc@gmail.com \
--to=szymon.janc@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox