summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/tbxfroot.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-09-23 03:52:34 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-24 01:46:24 +0200
commitcacba8657351f709ab3cb53a2b207f513f14054c (patch)
treee1e6916e08fc31a145e88cc722c27891f57b8b72 /drivers/acpi/acpica/tbxfroot.c
parentACPICA: Tables: Cleanup table checksum verification code. (diff)
downloadlinux-cacba8657351f709ab3cb53a2b207f513f14054c.tar.xz
linux-cacba8657351f709ab3cb53a2b207f513f14054c.zip
ACPICA: Tables: Cleanup RSDP signature codes.
This patch introduces new macors to handle RSDP signature and cleans up the affected codes. Lv Zheng. Some updates are only used for ACPICA utilities which are not shipped in the kernel yet. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Reviewed-by: Len Brown <len.brown@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/tbxfroot.c')
-rw-r--r--drivers/acpi/acpica/tbxfroot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c
index 948c95e80d44..1c95fabbe6a4 100644
--- a/drivers/acpi/acpica/tbxfroot.c
+++ b/drivers/acpi/acpica/tbxfroot.c
@@ -68,8 +68,7 @@ acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp)
* Note: Sometimes there exists more than one RSDP in memory; the valid
* RSDP has a valid checksum, all others have an invalid checksum.
*/
- if (ACPI_STRNCMP((char *)rsdp->signature, ACPI_SIG_RSDP,
- sizeof(ACPI_SIG_RSDP) - 1) != 0) {
+ if (!ACPI_VALIDATE_RSDP_SIG(rsdp->signature)) {
/* Nope, BAD Signature */