diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-16 18:20:00 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-17 04:27:11 -0500 |
commit | 7bb895d68e0c18b730bd89f2ed7e58de0e3a591a (patch) | |
tree | 32f88754d18f58e7fa2232077190e6f3cb1d8d05 /net/bluetooth/mgmt.c | |
parent | 76a7f3a40c2bfbdb5f2b23ac780fa4e4f22e8659 (diff) |
Bluetooth: mgmt: Use more consistent error variable names
For simple integer errors the variable name "err" is more consistent
with the existing code base than "ret".
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 5520858553cc..d5dbe402bc03 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2585,7 +2585,7 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered) | |||
2585 | { | 2585 | { |
2586 | struct cmd_lookup match = { NULL, hdev }; | 2586 | struct cmd_lookup match = { NULL, hdev }; |
2587 | __le32 ev; | 2587 | __le32 ev; |
2588 | int ret; | 2588 | int err; |
2589 | 2589 | ||
2590 | mgmt_pending_foreach(MGMT_OP_SET_POWERED, hdev, settings_rsp, &match); | 2590 | mgmt_pending_foreach(MGMT_OP_SET_POWERED, hdev, settings_rsp, &match); |
2591 | 2591 | ||
@@ -2596,50 +2596,50 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered) | |||
2596 | 2596 | ||
2597 | ev = cpu_to_le32(get_current_settings(hdev)); | 2597 | ev = cpu_to_le32(get_current_settings(hdev)); |
2598 | 2598 | ||
2599 | ret = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), | 2599 | err = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), |
2600 | match.sk); | 2600 | match.sk); |
2601 | 2601 | ||
2602 | if (match.sk) | 2602 | if (match.sk) |
2603 | sock_put(match.sk); | 2603 | sock_put(match.sk); |
2604 | 2604 | ||
2605 | return ret; | 2605 | return err; |
2606 | } | 2606 | } |
2607 | 2607 | ||
2608 | int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable) | 2608 | int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable) |
2609 | { | 2609 | { |
2610 | struct cmd_lookup match = { NULL, hdev }; | 2610 | struct cmd_lookup match = { NULL, hdev }; |
2611 | __le32 ev; | 2611 | __le32 ev; |
2612 | int ret; | 2612 | int err; |
2613 | 2613 | ||
2614 | mgmt_pending_foreach(MGMT_OP_SET_DISCOVERABLE, hdev, settings_rsp, &match); | 2614 | mgmt_pending_foreach(MGMT_OP_SET_DISCOVERABLE, hdev, settings_rsp, &match); |
2615 | 2615 | ||
2616 | ev = cpu_to_le32(get_current_settings(hdev)); | 2616 | ev = cpu_to_le32(get_current_settings(hdev)); |
2617 | 2617 | ||
2618 | ret = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), | 2618 | err = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), |
2619 | match.sk); | 2619 | match.sk); |
2620 | if (match.sk) | 2620 | if (match.sk) |
2621 | sock_put(match.sk); | 2621 | sock_put(match.sk); |
2622 | 2622 | ||
2623 | return ret; | 2623 | return err; |
2624 | } | 2624 | } |
2625 | 2625 | ||
2626 | int mgmt_connectable(struct hci_dev *hdev, u8 connectable) | 2626 | int mgmt_connectable(struct hci_dev *hdev, u8 connectable) |
2627 | { | 2627 | { |
2628 | __le32 ev; | 2628 | __le32 ev; |
2629 | struct cmd_lookup match = { NULL, hdev }; | 2629 | struct cmd_lookup match = { NULL, hdev }; |
2630 | int ret; | 2630 | int err; |
2631 | 2631 | ||
2632 | mgmt_pending_foreach(MGMT_OP_SET_CONNECTABLE, hdev, settings_rsp, | 2632 | mgmt_pending_foreach(MGMT_OP_SET_CONNECTABLE, hdev, settings_rsp, |
2633 | &match); | 2633 | &match); |
2634 | 2634 | ||
2635 | ev = cpu_to_le32(get_current_settings(hdev)); | 2635 | ev = cpu_to_le32(get_current_settings(hdev)); |
2636 | 2636 | ||
2637 | ret = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), match.sk); | 2637 | err = mgmt_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, sizeof(ev), match.sk); |
2638 | 2638 | ||
2639 | if (match.sk) | 2639 | if (match.sk) |
2640 | sock_put(match.sk); | 2640 | sock_put(match.sk); |
2641 | 2641 | ||
2642 | return ret; | 2642 | return err; |
2643 | } | 2643 | } |
2644 | 2644 | ||
2645 | int mgmt_write_scan_failed(struct hci_dev *hdev, u8 scan, u8 status) | 2645 | int mgmt_write_scan_failed(struct hci_dev *hdev, u8 scan, u8 status) |