aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasanna Karthik <mkarthi3@visteon.com>2015-09-28 04:03:24 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-09-28 07:06:13 -0400
commita913718812d5998b3af2b6d6b5f0be4a09caebb1 (patch)
tree34e8afb53f9146de924e8c70411c8e7b372d71fd
parent1f438c6138ac5739ce16c8db04689e438d65dfe6 (diff)
Bluetooth: hci_qca: Changed unsigned long to bool
'retransmit' being set in HCI_IBS_TX_WAKING case, using bool would be efficient. Initialize local bool to false. Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--drivers/bluetooth/hci_qca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 21f4ea4ce610..b4a0393b2862 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -347,7 +347,7 @@ static void hci_ibs_wake_retrans_timeout(unsigned long arg)
347 struct hci_uart *hu = (struct hci_uart *)arg; 347 struct hci_uart *hu = (struct hci_uart *)arg;
348 struct qca_data *qca = hu->priv; 348 struct qca_data *qca = hu->priv;
349 unsigned long flags, retrans_delay; 349 unsigned long flags, retrans_delay;
350 unsigned long retransmit = 0; 350 bool retransmit = false;
351 351
352 BT_DBG("hu %p wake retransmit timeout in %d state", 352 BT_DBG("hu %p wake retransmit timeout in %d state",
353 hu, qca->tx_ibs_state); 353 hu, qca->tx_ibs_state);
@@ -358,7 +358,7 @@ static void hci_ibs_wake_retrans_timeout(unsigned long arg)
358 switch (qca->tx_ibs_state) { 358 switch (qca->tx_ibs_state) {
359 case HCI_IBS_TX_WAKING: 359 case HCI_IBS_TX_WAKING:
360 /* No WAKE_ACK, retransmit WAKE */ 360 /* No WAKE_ACK, retransmit WAKE */
361 retransmit = 1; 361 retransmit = true;
362 if (send_hci_ibs_cmd(HCI_IBS_WAKE_IND, hu) < 0) { 362 if (send_hci_ibs_cmd(HCI_IBS_WAKE_IND, hu) < 0) {
363 BT_ERR("Failed to acknowledge device wake up"); 363 BT_ERR("Failed to acknowledge device wake up");
364 break; 364 break;