]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Don't bother clearing global NVS
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:20 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 5 Nov 2020 06:58:45 +0000 (14:58 +0800)
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>
arch/x86/cpu/intel_common/acpi.c

index 4496bbfd999c2d506651b2d94ab769fd97f462a5..6a3456f47605022d0d97d7a09a162f3bca4f935c 100644 (file)
@@ -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)