Thread (3 messages) 3 messages, 2 authors, 2012-11-26
STALE4989d

[PATCH v2 1/2] adaptername: Remove not needed empty remove callback

From: Szymon Janc <hidden>
Date: 2012-11-26 11:48:43
Subsystem: the rest · Maintainer: Linus Torvalds

Remove callback is called only if it is not NULL so there is no need to
register empty callback function.
---
 plugins/adaptername.c |    5 -----
 1 file changed, 5 deletions(-)
diff --git a/plugins/adaptername.c b/plugins/adaptername.c
index 353f11c..2013b7b 100644
--- a/plugins/adaptername.c
+++ b/plugins/adaptername.c
@@ -261,14 +261,9 @@ fail:
 	return FALSE;
 }
 
-static void adaptername_remove(struct btd_adapter *adapter)
-{
-}
-
 static struct btd_adapter_driver adaptername_driver = {
 	.name	= "adaptername",
 	.probe	= adaptername_probe,
-	.remove	= adaptername_remove,
 };
 
 static int adaptername_init(void)
-- 
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