From 03aff0e1f0489dd823305d37e693067f15035a66 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 8 Nov 2011 16:24:03 +0100 Subject: bluetooth: Cleanup if technology driver register fails --- plugins/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/bluetooth.c') 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; -- cgit v1.2.3