aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nsutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/nsutils.c')
-rw-r--r--drivers/acpi/acpica/nsutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/nsutils.c b/drivers/acpi/acpica/nsutils.c
index 7e8bd2af806d..4479654760ac 100644
--- a/drivers/acpi/acpica/nsutils.c
+++ b/drivers/acpi/acpica/nsutils.c
@@ -663,17 +663,17 @@ void acpi_ns_terminate(void)
663 663
664u32 acpi_ns_opens_scope(acpi_object_type type) 664u32 acpi_ns_opens_scope(acpi_object_type type)
665{ 665{
666 ACPI_FUNCTION_TRACE_STR(ns_opens_scope, acpi_ut_get_type_name(type)); 666 ACPI_FUNCTION_ENTRY();
667 667
668 if (!acpi_ut_valid_object_type(type)) { 668 if (type > ACPI_TYPE_LOCAL_MAX) {
669 669
670 /* type code out of range */ 670 /* type code out of range */
671 671
672 ACPI_WARNING((AE_INFO, "Invalid Object Type 0x%X", type)); 672 ACPI_WARNING((AE_INFO, "Invalid Object Type 0x%X", type));
673 return_UINT32(ACPI_NS_NORMAL); 673 return (ACPI_NS_NORMAL);
674 } 674 }
675 675
676 return_UINT32(((u32)acpi_gbl_ns_properties[type]) & ACPI_NS_NEWSCOPE); 676 return (((u32)acpi_gbl_ns_properties[type]) & ACPI_NS_NEWSCOPE);
677} 677}
678 678
679/******************************************************************************* 679/*******************************************************************************