aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorKuba Pawlak <kubax.t.pawlak@intel.com>2014-11-06 13:36:53 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-06 13:38:42 -0500
commit9645c76c7c233da82ff7aced0177c8a131a51e70 (patch)
tree00af8844aac81896594838cd30de1b8ecf048ca5 /net/bluetooth
parent50fc85f1b04908301c463e5b963f16d18a90d5cc (diff)
Bluetooth: Sort switch cases by opcode's numeric value
Opcodes in switch/case in hci_cmd_status_evt are not sorted by value. This patch restores proper ordering. Signed-off-by: Kuba Pawlak <kubax.t.pawlak@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_event.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 73d9bb4a2c1e..5e7be804c709 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -2873,6 +2873,10 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
2873 hci_cs_create_conn(hdev, ev->status); 2873 hci_cs_create_conn(hdev, ev->status);
2874 break; 2874 break;
2875 2875
2876 case HCI_OP_DISCONNECT:
2877 hci_cs_disconnect(hdev, ev->status);
2878 break;
2879
2876 case HCI_OP_ADD_SCO: 2880 case HCI_OP_ADD_SCO:
2877 hci_cs_add_sco(hdev, ev->status); 2881 hci_cs_add_sco(hdev, ev->status);
2878 break; 2882 break;
@@ -2901,6 +2905,14 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
2901 hci_cs_setup_sync_conn(hdev, ev->status); 2905 hci_cs_setup_sync_conn(hdev, ev->status);
2902 break; 2906 break;
2903 2907
2908 case HCI_OP_CREATE_PHY_LINK:
2909 hci_cs_create_phylink(hdev, ev->status);
2910 break;
2911
2912 case HCI_OP_ACCEPT_PHY_LINK:
2913 hci_cs_accept_phylink(hdev, ev->status);
2914 break;
2915
2904 case HCI_OP_SNIFF_MODE: 2916 case HCI_OP_SNIFF_MODE:
2905 hci_cs_sniff_mode(hdev, ev->status); 2917 hci_cs_sniff_mode(hdev, ev->status);
2906 break; 2918 break;
@@ -2913,18 +2925,6 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb)
2913 hci_cs_switch_role(hdev, ev->status); 2925 hci_cs_switch_role(hdev, ev->status);
2914 break; 2926 break;
2915 2927
2916 case HCI_OP_DISCONNECT:
2917 hci_cs_disconnect(hdev, ev->status);
2918 break;
2919
2920 case HCI_OP_CREATE_PHY_LINK:
2921 hci_cs_create_phylink(hdev, ev->status);
2922 break;
2923
2924 case HCI_OP_ACCEPT_PHY_LINK:
2925 hci_cs_accept_phylink(hdev, ev->status);
2926 break;
2927
2928 case HCI_OP_LE_CREATE_CONN: 2928 case HCI_OP_LE_CREATE_CONN:
2929 hci_cs_le_create_conn(hdev, ev->status); 2929 hci_cs_le_create_conn(hdev, ev->status);
2930 break; 2930 break;