diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-04 09:57:20 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-11-05 14:58:45 +0800 |
commit | dc0791d4154614cf4f32e295f88ec1e7d5a227a1 (patch) | |
tree | 3c7d869d152aefb3578fbd7885f5060a3185c59a | |
parent | 5019e201ccaee4bd54ba707dfc4eece885857629 (diff) | |
download | u-boot-dc0791d4154614cf4f32e295f88ec1e7d5a227a1.tar.gz |
x86: Don't bother clearing global NVS
The bloblist guarantees that blobs are zeroed so there is no need to do
an additional memset(). Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | arch/x86/cpu/intel_common/acpi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/cpu/intel_common/acpi.c b/arch/x86/cpu/intel_common/acpi.c index 4496bbfd99..6a3456f476 100644 --- a/arch/x86/cpu/intel_common/acpi.c +++ b/arch/x86/cpu/intel_common/acpi.c @@ -202,7 +202,6 @@ int southbridge_inject_dsdt(const struct udevice *dev, struct acpi_ctx *ctx) (void **)&gnvs); if (ret) return log_msg_ret("bloblist", ret); - memset(gnvs, '\0', sizeof(*gnvs)); ret = acpi_create_gnvs(gnvs); if (ret) |