Thread (9 messages) flat view 9 messages, 3 authors, 2012-11-26
STALE5002d

[PATCH 2/5] service: Remove not needed initialization

From: Szymon Janc <hidden>
Date: 2012-11-26 09:07:37
Subsystem: the rest · Maintainer: Linus Torvalds

serv_adapter is allocated with g_try_new0 so there is no need to
explicite initialize its pending_list to NULL.
---
 plugins/service.c |    2 --
 1 file changed, 2 deletions(-)
diff --git a/plugins/service.c b/plugins/service.c
index d70c515..af24839 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -509,8 +509,6 @@ static int register_interface(const char *path, struct btd_adapter *adapter)
 	if (serv_adapter == NULL)
 		return -ENOMEM;
 
-	serv_adapter->pending_list = NULL;
-
 	if (g_dbus_register_interface(btd_get_dbus_connection(),
 				path, SERVICE_INTERFACE,
 				service_methods, NULL, NULL, serv_adapter,
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help