diff options
author | Bob Moore <robert.moore@intel.com> | 2012-12-30 19:05:17 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:19 -0500 |
commit | 04a81dce13c672757637b759039de216ed29a536 (patch) | |
tree | 06ce2b5dceb2f1b9cea0e480bb1676810c8f889e /drivers/acpi/acpica/nsxfeval.c | |
parent | 528a412c86e7a831d0fd157cac65749b45b64e06 (diff) |
ACPICA: Eliminate some small unnecessary pathname functions.
Removed several small pathname functions to increase efficiency.
Essentially, they replace a function call with a single compare.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nsxfeval.c')
-rw-r--r-- | drivers/acpi/acpica/nsxfeval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nsxfeval.c b/drivers/acpi/acpica/nsxfeval.c index ef29925d1620..1070eeefcbce 100644 --- a/drivers/acpi/acpica/nsxfeval.c +++ b/drivers/acpi/acpica/nsxfeval.c | |||
@@ -236,7 +236,7 @@ acpi_evaluate_object(acpi_handle handle, | |||
236 | * 2) No handle, not fully qualified pathname (error) | 236 | * 2) No handle, not fully qualified pathname (error) |
237 | * 3) Valid handle | 237 | * 3) Valid handle |
238 | */ | 238 | */ |
239 | if ((pathname) && (acpi_ns_valid_root_prefix(pathname[0]))) { | 239 | if ((pathname) && (ACPI_IS_ROOT_PREFIX(pathname[0]))) { |
240 | 240 | ||
241 | /* The path is fully qualified, just evaluate by name */ | 241 | /* The path is fully qualified, just evaluate by name */ |
242 | 242 | ||