aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-01-16 02:49:58 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 10:01:28 -0500
commita0c808b373e89aecc3ecae4cbdcdeff68aa12e3e (patch)
treeb8c27b90772ab0501b0d6689e6a7782806af14c7 /net/bluetooth/hci_conn.c
parent51a8efd7d02c13cb1c6fdd1cd66788792a3fcc7c (diff)
Bluetooth: Convert hdev->out to a bool type
The hdev->out variable is essentially a boolean so the type 'bool' makes more sense than u8. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 8a4678a2c982..a707d19ee44e 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -51,7 +51,7 @@ static void hci_le_connect(struct hci_conn *conn)
51 struct hci_cp_le_create_conn cp; 51 struct hci_cp_le_create_conn cp;
52 52
53 conn->state = BT_CONNECT; 53 conn->state = BT_CONNECT;
54 conn->out = 1; 54 conn->out = true;
55 conn->link_mode |= HCI_LM_MASTER; 55 conn->link_mode |= HCI_LM_MASTER;
56 conn->sec_level = BT_SECURITY_LOW; 56 conn->sec_level = BT_SECURITY_LOW;
57 57
@@ -83,7 +83,7 @@ void hci_acl_connect(struct hci_conn *conn)
83 BT_DBG("%p", conn); 83 BT_DBG("%p", conn);
84 84
85 conn->state = BT_CONNECT; 85 conn->state = BT_CONNECT;
86 conn->out = 1; 86 conn->out = true;
87 87
88 conn->link_mode = HCI_LM_MASTER; 88 conn->link_mode = HCI_LM_MASTER;
89 89
@@ -151,7 +151,7 @@ void hci_add_sco(struct hci_conn *conn, __u16 handle)
151 BT_DBG("%p", conn); 151 BT_DBG("%p", conn);
152 152
153 conn->state = BT_CONNECT; 153 conn->state = BT_CONNECT;
154 conn->out = 1; 154 conn->out = true;
155 155
156 conn->attempt++; 156 conn->attempt++;
157 157
@@ -169,7 +169,7 @@ void hci_setup_sync(struct hci_conn *conn, __u16 handle)
169 BT_DBG("%p", conn); 169 BT_DBG("%p", conn);
170 170
171 conn->state = BT_CONNECT; 171 conn->state = BT_CONNECT;
172 conn->out = 1; 172 conn->out = true;
173 173
174 conn->attempt++; 174 conn->attempt++;
175 175