mgmt_update_powered always returned 0 and this was never checked by caller. --- src/mgmt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mgmt.c b/src/mgmt.c index 2a66be2..8caabe8 100644 --- a/src/mgmt.c +++ b/src/mgmt.c @@ -352,7 +352,7 @@ static void update_settings(struct btd_adapter *adapter, uint32_t settings) mgmt_set_low_energy(index, TRUE); } -static int mgmt_update_powered(struct btd_adapter *adapter, +static void mgmt_update_powered(struct btd_adapter *adapter, struct controller_info *info, uint32_t settings) { @@ -363,14 +363,12 @@ static int mgmt_update_powered(struct btd_adapter *adapter, info->pending_uuid = FALSE; info->pending_class = FALSE; info->pending_cod_change = FALSE; - return 0; + return; } btd_adapter_start(adapter); update_settings(adapter, settings); - - return 0; } static int mode_changed(uint32_t s1, uint32_t s2) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html