diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-06-08 12:30:17 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-11 10:43:32 -0700 |
commit | c0e3742996a84d3c503cfa002b09a0831bcb2c32 (patch) | |
tree | 232ef3a8e633f9cec480775bdceae2e1868b9475 /host | |
parent | 71b126ba46c3b2fda3007dc0dd24a9f74adab604 (diff) | |
download | vboot-c0e3742996a84d3c503cfa002b09a0831bcb2c32.tar.gz |
Remove unused test fields from VbNvStorage
Confirmed via codesearch that these fields are not used outside of
vboot_reference itself, and the only use inside vboot_reference is one
test which checked that the test error generation itself worked.
BUG=chromium-os:31668
TEST=make && make runtests
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Change-Id: Ic393e126ca2853f7aaff19ffd6fcdbdb1c47689f
Reviewed-on: https://gerrit.chromium.org/gerrit/24895
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/crossystem.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index a834979d..d80f8430 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -363,10 +363,6 @@ int VbGetSystemPropertyInt(const char* name) { value = VbGetNvStorage(VBNV_KERNEL_FIELD); } else if (!strcasecmp(name,"nvram_cleared")) { value = VbGetNvStorage(VBNV_KERNEL_SETTINGS_RESET); - } else if (!strcasecmp(name,"vbtest_errfunc")) { - value = VbGetNvStorage(VBNV_TEST_ERROR_FUNC); - } else if (!strcasecmp(name,"vbtest_errno")) { - value = VbGetNvStorage(VBNV_TEST_ERROR_NUM); } else if (!strcasecmp(name,"recovery_request")) { value = VbGetNvStorage(VBNV_RECOVERY_REQUEST); } else if (!strcasecmp(name,"dbg_reset")) { @@ -443,10 +439,6 @@ int VbSetSystemPropertyInt(const char* name, int value) { if (!strcasecmp(name,"nvram_cleared")) { /* Can only clear this flag; it's set inside the NV storage library. */ return VbSetNvStorage(VBNV_KERNEL_SETTINGS_RESET, 0); - } else if (!strcasecmp(name,"vbtest_errfunc")) { - return VbSetNvStorage(VBNV_TEST_ERROR_FUNC, value); - } else if (!strcasecmp(name,"vbtest_errno")) { - return VbSetNvStorage(VBNV_TEST_ERROR_NUM, value); } else if (!strcasecmp(name,"recovery_request")) { return VbSetNvStorage(VBNV_RECOVERY_REQUEST, value); } else if (!strcasecmp(name,"dbg_reset")) { |