summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-11-08 16:24:03 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-11-10 13:32:21 +0100
commit03aff0e1f0489dd823305d37e693067f15035a66 (patch)
treee2a66c3b4d2cabbe73f5bfe46b3f60d8fda4f9d9 /plugins/bluetooth.c
parent389f3b79a16e76d289cdafad29d7f5664c2c393f (diff)
downloadconnman-03aff0e1f0489dd823305d37e693067f15035a66.tar.gz
bluetooth: Cleanup if technology driver register fails
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index cdb20ff2..1c8d3a0c 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -1231,7 +1231,7 @@ static int bluetooth_init(void)
if (err < 0) {
connman_device_driver_unregister(&bluetooth_driver);
connman_network_driver_unregister(&pan_driver);
- return err;
+ goto remove;
}
return 0;