Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/6] android: Remove reduntant structure
@ 2013-10-29 12:16 Jakub Tyszkowski
  2013-10-29 12:16 ` [PATCH 2/6] android/hal: Add support for start/cancel device discovery commands Jakub Tyszkowski
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jakub Tyszkowski @ 2013-10-29 12:16 UTC (permalink / raw)
  To: linux-bluetooth

---
 android/adapter.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/android/adapter.c b/android/adapter.c
index 15b65e5..7e5c1a1 100644
--- a/android/adapter.c
+++ b/android/adapter.c
@@ -234,12 +234,11 @@ static void load_link_keys(GSList *keys)
 {
 	struct mgmt_cp_load_link_keys *cp;
 	size_t key_len = g_slist_length(keys);
-	struct mgmt_link_key_info *key;
 	size_t len;
 
 	DBG("");
 
-	len = sizeof(*cp) + key_len * sizeof(*key);
+	len = sizeof(*cp) + key_len * sizeof(struct mgmt_link_key_info);
 	cp = g_malloc0(len);
 
 	cp->debug_keys = 0;
-- 
1.8.4.1


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

end of thread, other threads:[~2013-10-29 13:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 12:16 [PATCH 1/6] android: Remove reduntant structure Jakub Tyszkowski
2013-10-29 12:16 ` [PATCH 2/6] android/hal: Add support for start/cancel device discovery commands Jakub Tyszkowski
2013-10-29 12:16 ` [PATCH 3/6] android/hal: Add support for handling discovery state change event Jakub Tyszkowski
2013-10-29 12:16 ` [PATCH 4/6] android/hal: Add device found event handler Jakub Tyszkowski
2013-10-29 12:16 ` [PATCH 5/6] android/hal: Add device state changed " Jakub Tyszkowski
2013-10-29 12:36   ` Andrei Emeltchenko
2013-10-29 13:18     ` Jakub Tyszkowski
2013-10-29 12:16 ` [PATCH 6/6] android: Add missing discovery state definitions to IPC header Jakub Tyszkowski
2013-10-29 12:28 ` [PATCH 1/6] android: Remove reduntant structure Johan Hedberg
2013-10-29 13:01   ` Jakub Tyszkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox