diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-16 12:12:53 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-16 13:32:03 +0300 |
commit | 89b59038879ea871515eee1799c6bae9d76d5ed5 (patch) | |
tree | cce2f59d78b0d1560f11cd8b85a79c8cd6cc1d7b /src | |
parent | d9465e8297d4d2ce81c2d72fa1eedaccc430e13e (diff) |
mgmt: Make mgmt_update_powered return void
mgmt_update_powered always returned 0 and this was never checked by
caller.
Diffstat (limited to 'src')
-rw-r--r-- | src/mgmt.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |