[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] hw/acpi/erst: clean up unused IS_UEFI_CPER_RECORD macro
From: |
Ani Sinha |
Subject: |
[PATCH 4/7] hw/acpi/erst: clean up unused IS_UEFI_CPER_RECORD macro |
Date: |
Wed, 23 Feb 2022 20:03:19 +0530 |
This change is cosmetic. IS_UEFI_CPER_RECORD macro definition that was added
as a part of the ERST implementation seems to be unused. Remove it.
CC: Eric DeVolder <eric.devolder@oracle.com>
Reviewed-by: Eric DeVolder <eric.devolder@oracle.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
---
hw/acpi/erst.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/hw/acpi/erst.c b/hw/acpi/erst.c
index c0a23cf467..de509c2b48 100644
--- a/hw/acpi/erst.c
+++ b/hw/acpi/erst.c
@@ -80,11 +80,6 @@
#define UEFI_CPER_RECORD_MIN_SIZE 128U
#define UEFI_CPER_RECORD_LENGTH_OFFSET 20U
#define UEFI_CPER_RECORD_ID_OFFSET 96U
-#define IS_UEFI_CPER_RECORD(ptr) \
- (((ptr)[0] == 'C') && \
- ((ptr)[1] == 'P') && \
- ((ptr)[2] == 'E') && \
- ((ptr)[3] == 'R'))
/*
* NOTE that when accessing CPER fields within a record, memcpy()
--
2.25.1
- [PATCH 0/7] Queued patches for the next pull request, Ani Sinha, 2022/02/23
- [PATCH 1/7] ACPI ERST: specification for ERST support, Ani Sinha, 2022/02/23
- [PATCH 2/7] MAINTAINERS: no need to add my name explicitly as a reviewer for VIOT tables, Ani Sinha, 2022/02/23
- [PATCH 3/7] docs/acpi/erst: add device id for ACPI ERST device in pci-ids.txt, Ani Sinha, 2022/02/23
- [PATCH 4/7] hw/acpi/erst: clean up unused IS_UEFI_CPER_RECORD macro,
Ani Sinha <=
- [PATCH 5/7] hw/smbios: code cleanup - use macro definitions for table header handles, Ani Sinha, 2022/02/23
- [PATCH 6/7] hw/smbios: fix overlapping table handle numbers with large memory vms, Ani Sinha, 2022/02/23
- [PATCH 7/7] hw/smbios: add assertion to ensure handles of tables 19 and 32 do not collide, Ani Sinha, 2022/02/23