diff options
author | Jeremy Bettis <jbettis@google.com> | 2021-08-30 15:40:09 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-31 18:49:14 +0000 |
commit | 1eb508b123bd4b5764ea3956ccf1b49ceb321fcd (patch) | |
tree | 7c9152dc08c8f83885d26d4c3787613cada7c8b0 /zephyr/emul/emul_bmi160.c | |
parent | ed87c0c1ade57ab6e8bd46a11a2f0484a503f1b8 (diff) | |
download | chrome-ec-1eb508b123bd4b5764ea3956ccf1b49ceb321fcd.tar.gz |
zephyr: Removing unused vars
zephyr toolchain doesn't allow unused vars, so this is preventing
running tests on gitlab.
Add -Werror=unused-variable to clang args so that this doesn't
backslide.
BUG=None
TEST=zmake coverage on docker
BRANCH=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I7749041fd0f09e5cf35e6a6c1d4555af805469c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3131880
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/emul/emul_bmi160.c')
-rw-r--r-- | zephyr/emul/emul_bmi160.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/zephyr/emul/emul_bmi160.c b/zephyr/emul/emul_bmi160.c index 8f6572604f..d080574de5 100644 --- a/zephyr/emul/emul_bmi160.c +++ b/zephyr/emul/emul_bmi160.c @@ -404,7 +404,6 @@ static void bmi160_emul_handle_off_comp(uint8_t *regs, struct i2c_emul *emul) static int bmi160_emul_start_cmd(uint8_t *regs, struct i2c_emul *emul, int cmd) { int time; - int ret; switch (cmd) { case BMI160_CMD_SOFT_RESET: @@ -566,7 +565,6 @@ static int bmi160_emul_handle_write(uint8_t *regs, struct i2c_emul *emul, { bool tag_time; bool header; - int ret; if (byte > 1) { LOG_ERR("Block writes are not allowed"); @@ -636,7 +634,6 @@ static int bmi160_emul_handle_read(uint8_t *regs, struct i2c_emul *emul, bool header; int gyr_shift; int acc_shift; - int ret; /* * If register is FIFO data, then read data from FIFO. |