diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-11-08 16:24:03 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-10 13:32:21 +0100 |
commit | 03aff0e1f0489dd823305d37e693067f15035a66 (patch) | |
tree | e2a66c3b4d2cabbe73f5bfe46b3f60d8fda4f9d9 /plugins/bluetooth.c | |
parent | 389f3b79a16e76d289cdafad29d7f5664c2c393f (diff) | |
download | connman-03aff0e1f0489dd823305d37e693067f15035a66.tar.gz connman-03aff0e1f0489dd823305d37e693067f15035a66.tar.bz2 connman-03aff0e1f0489dd823305d37e693067f15035a66.zip |
bluetooth: Cleanup if technology driver register fails
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 2 |
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; |