Fix unused-but-set-variable warnings

Test: presubmit
Bug: 197240255
Change-Id: I3c089f4882044a03b550f484264beaf1f57bc17e
3 files changed