]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Several lint changes, no functional changes
authorBob Moore <robert.moore@intel.com>
Tue, 10 Jun 2008 05:44:48 +0000 (13:44 +0800)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 16 Jul 2008 21:27:03 +0000 (23:27 +0200)
Remove pointer cast warnings and fix for a debug printf.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/acpi/executer/exprep.c

index 3a2f8cd4c62a9bffc6d27c25ed2b4bff3c112c0c..5d438c32989d892be3d41b08e738c167ff1ad3c2 100644 (file)
@@ -503,11 +503,11 @@ acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info)
                 */
                second_desc = obj_desc->common.next_object;
                second_desc->extra.aml_start =
-                   ((union acpi_parse_object *)(info->data_register_node))->
-                   named.data;
+                   ACPI_CAST_PTR(union acpi_parse_object,
+                                 info->data_register_node)->named.data;
                second_desc->extra.aml_length =
-                   ((union acpi_parse_object *)(info->data_register_node))->
-                   named.length;
+                   ACPI_CAST_PTR(union acpi_parse_object,
+                                 info->data_register_node)->named.length;
 
                break;