diff options
author | Yunlian Jiang <yunlian@google.com> | 2015-04-15 10:26:20 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-15 22:58:06 +0000 |
commit | 710485a5710215da2e0d4cd4d45c5843e360f0e7 (patch) | |
tree | 1881c49757f2e3c8e35c7d6032cf543324a1233c /host | |
parent | eff3100f0efcba12c4403b9c86c5227dd41916ac (diff) | |
download | vboot-710485a5710215da2e0d4cd4d45c5843e360f0e7.tar.gz |
vboot_reference: fix several syntax warnings found by clang.stabilize-6996.B
BUG=chromium:475949
TEST=CC=x86_64-cros-linux-gnu-clang CXX=x86_64-cros-linux-gnu-clang++
emerge-falco vboot_reference
BRANCH=none
Change-Id: I3341e840c3f26f8579d35e0bb411566b0ad86164
Reviewed-on: https://chromium-review.googlesource.com/265834
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/arch/x86/lib/crossystem_arch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/host/arch/x86/lib/crossystem_arch.c b/host/arch/x86/lib/crossystem_arch.c index 15a6433e..84a49ee1 100644 --- a/host/arch/x86/lib/crossystem_arch.c +++ b/host/arch/x86/lib/crossystem_arch.c @@ -587,11 +587,9 @@ static int BayTrailFindGpioChipOffset(unsigned *gpio_num, unsigned *offset, } else if (*gpio_num >= 0x1000) { *gpio_num -= 0x1000; expected_uid = 2; - } else if (*gpio_num >= 0x0000) { + } else { *gpio_num -= 0x0000; expected_uid = 1; - } else { - return 0; } dir = opendir(GPIO_BASE_PATH); |