summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2016-08-15 15:00:45 -0600
committerchrome-bot <chrome-bot@chromium.org>2016-08-16 14:04:33 -0700
commit880351b80e7a70601e6399bd47ab21ccf5e3303c (patch)
tree12b35661043aec738afce94b02387ba66fa792c9
parent81421ba013fb536c38b509165d385caf78f723e6 (diff)
downloadchrome-ec-880351b80e7a70601e6399bd47ab21ccf5e3303c.tar.gz
common/btle_ll.c: Return error code instead of uninitialized value
The variable rv was being returned without being initialized. Instead, return EC_SUCCESS. BUG=None BRANCH=None TEST=Build all boards successfully. Change-Id: If37057b737e6419c1d5cc22215a7d76d920d1267 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/370664
-rw-r--r--common/btle_ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/btle_ll.c b/common/btle_ll.c
index 28e2c44ac3..92c86665fc 100644
--- a/common/btle_ll.c
+++ b/common/btle_ll.c
@@ -425,7 +425,7 @@ int ble_ll_adv(int chan)
if (ll_adv_pdu.header.adv.type ==
BLE_ADV_HEADER_PDU_TYPE_ADV_NONCONN_IND)
- return rv;
+ return EC_SUCCESS;
rv = ble_rx(&ll_rcv_packet, 16000, 1);