summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-09-12 14:51:08 +0200
committerCommit Bot <commit-bot@chromium.org>2019-09-12 23:36:53 +0000
commit3e7d997d6832487be0ddcf80740b90d047a18d79 (patch)
tree67f265e0a04305046c3a580d6f6677328bf3e96c
parent77424e473fd1f47caf6b9e5621defc4bab51468a (diff)
downloadchrome-ec-3e7d997d6832487be0ddcf80740b90d047a18d79.tar.gz
common/btle_ll.c: define default return value
Found by Coverity Scan #160945 BUG=none BRANCH=none TEST=none Change-Id: I9689d88785db721c48c29d793c5b783a6f4dd583 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1801205 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
-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 02f6af73d0..d05813d95c 100644
--- a/common/btle_ll.c
+++ b/common/btle_ll.c
@@ -619,7 +619,7 @@ int ble_ll_adv(int chan)
int ble_ll_adv_event(void)
{
int chan_idx;
- int rv;
+ int rv = EC_SUCCESS;
for (chan_idx = 0; chan_idx < 3; chan_idx++) {
if (ll_adv_params.advChannelMap & BIT(chan_idx)) {