Commit 10622bf8 authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

ACPICA: Linuxize: Change indentation of C labels.

It is reported by kernel build test systems that all ACPICA source
files in the kernel tree have incorrect label indentation.  This
patch changes default indent option used in the release process to
fix this bug.  Lv Zheng.
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent bb1cab3d
...@@ -158,7 +158,7 @@ acpi_ds_execute_arguments(struct acpi_namespace_node *node, ...@@ -158,7 +158,7 @@ acpi_ds_execute_arguments(struct acpi_namespace_node *node,
walk_state->deferred_node = node; walk_state->deferred_node = node;
status = acpi_ps_parse_aml(walk_state); status = acpi_ps_parse_aml(walk_state);
cleanup: cleanup:
acpi_ps_delete_parse_tree(op); acpi_ps_delete_parse_tree(op);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -259,7 +259,7 @@ acpi_ds_create_buffer_field(union acpi_parse_object *op, ...@@ -259,7 +259,7 @@ acpi_ds_create_buffer_field(union acpi_parse_object *op,
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
/* Remove local reference to the object */ /* Remove local reference to the object */
......
...@@ -294,7 +294,7 @@ acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node, ...@@ -294,7 +294,7 @@ acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node,
obj_desc->method.thread_count++; obj_desc->method.thread_count++;
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
cleanup: cleanup:
/* On error, must release the method mutex (if present) */ /* On error, must release the method mutex (if present) */
if (obj_desc->method.mutex) { if (obj_desc->method.mutex) {
...@@ -424,7 +424,7 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread, ...@@ -424,7 +424,7 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
cleanup: cleanup:
/* On error, we must terminate the method properly */ /* On error, we must terminate the method properly */
......
...@@ -240,7 +240,7 @@ acpi_ds_build_internal_object(struct acpi_walk_state *walk_state, ...@@ -240,7 +240,7 @@ acpi_ds_build_internal_object(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
exit: exit:
*obj_desc_ptr = obj_desc; *obj_desc_ptr = obj_desc;
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -257,7 +257,7 @@ acpi_ds_init_buffer_field(u16 aml_opcode, ...@@ -257,7 +257,7 @@ acpi_ds_init_buffer_field(u16 aml_opcode,
(buffer_desc->common.reference_count + (buffer_desc->common.reference_count +
obj_desc->common.reference_count); obj_desc->common.reference_count);
cleanup: cleanup:
/* Always delete the operands */ /* Always delete the operands */
......
...@@ -299,7 +299,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op, ...@@ -299,7 +299,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op,
goto result_used; goto result_used;
} }
result_used: result_used:
ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,
"Result of [%s] used by Parent [%s] Op=%p\n", "Result of [%s] used by Parent [%s] Op=%p\n",
acpi_ps_get_opcode_name(op->common.aml_opcode), acpi_ps_get_opcode_name(op->common.aml_opcode),
...@@ -308,7 +308,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op, ...@@ -308,7 +308,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op,
return_UINT8(TRUE); return_UINT8(TRUE);
result_not_used: result_not_used:
ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,
"Result of [%s] not used by Parent [%s] Op=%p\n", "Result of [%s] not used by Parent [%s] Op=%p\n",
acpi_ps_get_opcode_name(op->common.aml_opcode), acpi_ps_get_opcode_name(op->common.aml_opcode),
...@@ -752,7 +752,7 @@ acpi_ds_create_operands(struct acpi_walk_state *walk_state, ...@@ -752,7 +752,7 @@ acpi_ds_create_operands(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
cleanup: cleanup:
/* /*
* We must undo everything done above; meaning that we must * We must undo everything done above; meaning that we must
* pop everything off of the operand stack and delete those * pop everything off of the operand stack and delete those
...@@ -851,7 +851,7 @@ acpi_status acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state) ...@@ -851,7 +851,7 @@ acpi_status acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state)
goto exit; goto exit;
} }
push_result: push_result:
walk_state->result_obj = new_obj_desc; walk_state->result_obj = new_obj_desc;
...@@ -863,7 +863,7 @@ acpi_status acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state) ...@@ -863,7 +863,7 @@ acpi_status acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state)
op->common.flags |= ACPI_PARSEOP_IN_STACK; op->common.flags |= ACPI_PARSEOP_IN_STACK;
} }
exit: exit:
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -170,7 +170,7 @@ acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state, ...@@ -170,7 +170,7 @@ acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state,
(void)acpi_ds_do_implicit_return(local_obj_desc, walk_state, TRUE); (void)acpi_ds_do_implicit_return(local_obj_desc, walk_state, TRUE);
cleanup: cleanup:
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Completed a predicate eval=%X Op=%p\n", ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Completed a predicate eval=%X Op=%p\n",
walk_state->control_state->common.value, walk_state->control_state->common.value,
...@@ -335,7 +335,7 @@ acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state, ...@@ -335,7 +335,7 @@ acpi_ds_exec_begin_op(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
error_exit: error_exit:
status = acpi_ds_method_error(status, walk_state); status = acpi_ds_method_error(status, walk_state);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -722,7 +722,7 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state) ...@@ -722,7 +722,7 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state)
walk_state->result_obj = NULL; walk_state->result_obj = NULL;
} }
cleanup: cleanup:
if (walk_state->result_obj) { if (walk_state->result_obj) {
......
...@@ -728,7 +728,7 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state) ...@@ -728,7 +728,7 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state)
break; break;
} }
cleanup: cleanup:
/* Remove the Node pushed at the very beginning */ /* Remove the Node pushed at the very beginning */
......
...@@ -173,7 +173,7 @@ static u32 acpi_ev_global_lock_handler(void *context) ...@@ -173,7 +173,7 @@ static u32 acpi_ev_global_lock_handler(void *context)
acpi_gbl_global_lock_pending = FALSE; acpi_gbl_global_lock_pending = FALSE;
cleanup_and_exit: cleanup_and_exit:
acpi_os_release_lock(acpi_gbl_global_lock_pending_lock, flags); acpi_os_release_lock(acpi_gbl_global_lock_pending_lock, flags);
return (ACPI_INTERRUPT_HANDLED); return (ACPI_INTERRUPT_HANDLED);
......
...@@ -458,7 +458,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) ...@@ -458,7 +458,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list)
gpe_block = gpe_block->next; gpe_block = gpe_block->next;
} }
unlock_and_exit: unlock_and_exit:
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
return (int_status); return (int_status);
......
...@@ -111,7 +111,7 @@ acpi_ev_install_gpe_block(struct acpi_gpe_block_info *gpe_block, ...@@ -111,7 +111,7 @@ acpi_ev_install_gpe_block(struct acpi_gpe_block_info *gpe_block,
gpe_block->xrupt_block = gpe_xrupt_block; gpe_block->xrupt_block = gpe_xrupt_block;
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
unlock_and_exit: unlock_and_exit:
status = acpi_ut_release_mutex(ACPI_MTX_EVENTS); status = acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -178,7 +178,7 @@ acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block) ...@@ -178,7 +178,7 @@ acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block)
ACPI_FREE(gpe_block->event_info); ACPI_FREE(gpe_block->event_info);
ACPI_FREE(gpe_block); ACPI_FREE(gpe_block);
unlock_and_exit: unlock_and_exit:
status = acpi_ut_release_mutex(ACPI_MTX_EVENTS); status = acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -302,7 +302,7 @@ acpi_ev_create_gpe_info_blocks(struct acpi_gpe_block_info *gpe_block) ...@@ -302,7 +302,7 @@ acpi_ev_create_gpe_info_blocks(struct acpi_gpe_block_info *gpe_block)
return_ACPI_STATUS(AE_OK); return_ACPI_STATUS(AE_OK);
error_exit: error_exit:
if (gpe_register_info) { if (gpe_register_info) {
ACPI_FREE(gpe_register_info); ACPI_FREE(gpe_register_info);
} }
......
...@@ -203,7 +203,7 @@ acpi_status acpi_ev_gpe_initialize(void) ...@@ -203,7 +203,7 @@ acpi_status acpi_ev_gpe_initialize(void)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(AE_OK); return_ACPI_STATUS(AE_OK);
} }
......
...@@ -101,7 +101,7 @@ acpi_ev_walk_gpe_list(acpi_gpe_callback gpe_walk_callback, void *context) ...@@ -101,7 +101,7 @@ acpi_ev_walk_gpe_list(acpi_gpe_callback gpe_walk_callback, void *context)
gpe_xrupt_info = gpe_xrupt_info->next; gpe_xrupt_info = gpe_xrupt_info->next;
} }
unlock_and_exit: unlock_and_exit:
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -129,7 +129,7 @@ acpi_status acpi_ev_install_region_handlers(void) ...@@ -129,7 +129,7 @@ acpi_status acpi_ev_install_region_handlers(void)
} }
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -531,6 +531,6 @@ acpi_ev_install_space_handler(struct acpi_namespace_node * node, ...@@ -531,6 +531,6 @@ acpi_ev_install_space_handler(struct acpi_namespace_node * node,
acpi_ev_install_handler, NULL, acpi_ev_install_handler, NULL,
handler_obj, NULL); handler_obj, NULL);
unlock_and_exit: unlock_and_exit:
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -573,10 +573,10 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function) ...@@ -573,10 +573,10 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function)
status = acpi_ns_evaluate(info); status = acpi_ns_evaluate(info);
acpi_ut_remove_reference(args[1]); acpi_ut_remove_reference(args[1]);
cleanup2: cleanup2:
acpi_ut_remove_reference(args[0]); acpi_ut_remove_reference(args[0]);
cleanup1: cleanup1:
ACPI_FREE(info); ACPI_FREE(info);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -761,7 +761,7 @@ acpi_ev_orphan_ec_reg_method(struct acpi_namespace_node *ec_device_node) ...@@ -761,7 +761,7 @@ acpi_ev_orphan_ec_reg_method(struct acpi_namespace_node *ec_device_node)
status = acpi_evaluate_object(reg_method, NULL, &args, NULL); status = acpi_evaluate_object(reg_method, NULL, &args, NULL);
exit: exit:
/* We ignore all errors from above, don't care */ /* We ignore all errors from above, don't care */
status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
......
...@@ -375,7 +375,7 @@ acpi_status acpi_install_exception_handler(acpi_exception_handler handler) ...@@ -375,7 +375,7 @@ acpi_status acpi_install_exception_handler(acpi_exception_handler handler)
acpi_gbl_exception_handler = handler; acpi_gbl_exception_handler = handler;
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -445,12 +445,12 @@ acpi_status acpi_install_sci_handler(acpi_sci_handler address, void *context) ...@@ -445,12 +445,12 @@ acpi_status acpi_install_sci_handler(acpi_sci_handler address, void *context)
new_sci_handler->next = acpi_gbl_sci_handler_list; new_sci_handler->next = acpi_gbl_sci_handler_list;
acpi_gbl_sci_handler_list = new_sci_handler; acpi_gbl_sci_handler_list = new_sci_handler;
unlock_and_exit: unlock_and_exit:
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
exit: exit:
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
ACPI_FREE(new_sci_handler); ACPI_FREE(new_sci_handler);
} }
...@@ -517,7 +517,7 @@ acpi_status acpi_remove_sci_handler(acpi_sci_handler address) ...@@ -517,7 +517,7 @@ acpi_status acpi_remove_sci_handler(acpi_sci_handler address)
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
status = AE_NOT_EXIST; status = AE_NOT_EXIST;
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -566,7 +566,7 @@ acpi_install_global_event_handler(acpi_gbl_event_handler handler, void *context) ...@@ -566,7 +566,7 @@ acpi_install_global_event_handler(acpi_gbl_event_handler handler, void *context)
acpi_gbl_global_event_handler = handler; acpi_gbl_global_event_handler = handler;
acpi_gbl_global_event_handler_context = context; acpi_gbl_global_event_handler_context = context;
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -638,7 +638,7 @@ acpi_install_fixed_event_handler(u32 event, ...@@ -638,7 +638,7 @@ acpi_install_fixed_event_handler(u32 event,
handler)); handler));
} }
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -472,7 +472,7 @@ acpi_get_gpe_status(acpi_handle gpe_device, ...@@ -472,7 +472,7 @@ acpi_get_gpe_status(acpi_handle gpe_device,
if (gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK) if (gpe_event_info->flags & ACPI_GPE_DISPATCH_MASK)
*event_status |= ACPI_EVENT_FLAG_HANDLE; *event_status |= ACPI_EVENT_FLAG_HANDLE;
unlock_and_exit: unlock_and_exit:
acpi_os_release_lock(acpi_gbl_gpe_lock, flags); acpi_os_release_lock(acpi_gbl_gpe_lock, flags);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -625,7 +625,7 @@ acpi_install_gpe_block(acpi_handle gpe_device, ...@@ -625,7 +625,7 @@ acpi_install_gpe_block(acpi_handle gpe_device,
obj_desc->device.gpe_block = gpe_block; obj_desc->device.gpe_block = gpe_block;
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -680,7 +680,7 @@ acpi_status acpi_remove_gpe_block(acpi_handle gpe_device) ...@@ -680,7 +680,7 @@ acpi_status acpi_remove_gpe_block(acpi_handle gpe_device)
obj_desc->device.gpe_block = NULL; obj_desc->device.gpe_block = NULL;
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -148,7 +148,7 @@ acpi_install_address_space_handler(acpi_handle device, ...@@ -148,7 +148,7 @@ acpi_install_address_space_handler(acpi_handle device,
status = acpi_ev_execute_reg_methods(node, space_id); status = acpi_ev_execute_reg_methods(node, space_id);
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -287,7 +287,7 @@ acpi_remove_address_space_handler(acpi_handle device, ...@@ -287,7 +287,7 @@ acpi_remove_address_space_handler(acpi_handle device,
status = AE_NOT_EXIST; status = AE_NOT_EXIST;
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -193,7 +193,7 @@ acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state) ...@@ -193,7 +193,7 @@ acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state)
acpi_ns_attach_object((struct acpi_namespace_node *)walk_state-> acpi_ns_attach_object((struct acpi_namespace_node *)walk_state->
operands[0], obj_desc, ACPI_TYPE_EVENT); operands[0], obj_desc, ACPI_TYPE_EVENT);
cleanup: cleanup:
/* /*
* Remove local reference to the object (on error, will cause deletion * Remove local reference to the object (on error, will cause deletion
* of both object and semaphore if present.) * of both object and semaphore if present.)
...@@ -248,7 +248,7 @@ acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state) ...@@ -248,7 +248,7 @@ acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state)
acpi_ns_attach_object(obj_desc->mutex.node, obj_desc, acpi_ns_attach_object(obj_desc->mutex.node, obj_desc,
ACPI_TYPE_MUTEX); ACPI_TYPE_MUTEX);
cleanup: cleanup:
/* /*
* Remove local reference to the object (on error, will cause deletion * Remove local reference to the object (on error, will cause deletion
* of both object and semaphore if present.) * of both object and semaphore if present.)
...@@ -347,7 +347,7 @@ acpi_ex_create_region(u8 * aml_start, ...@@ -347,7 +347,7 @@ acpi_ex_create_region(u8 * aml_start,
status = acpi_ns_attach_object(node, obj_desc, ACPI_TYPE_REGION); status = acpi_ns_attach_object(node, obj_desc, ACPI_TYPE_REGION);
cleanup: cleanup:
/* Remove local reference to the object */ /* Remove local reference to the object */
...@@ -520,7 +520,7 @@ acpi_ex_create_method(u8 * aml_start, ...@@ -520,7 +520,7 @@ acpi_ex_create_method(u8 * aml_start,
acpi_ut_remove_reference(obj_desc); acpi_ut_remove_reference(obj_desc);
exit: exit:
/* Remove a reference to the operand */ /* Remove a reference to the operand */
acpi_ut_remove_reference(operand[1]); acpi_ut_remove_reference(operand[1]);
......
...@@ -197,7 +197,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state, ...@@ -197,7 +197,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,
status = acpi_ex_extract_from_field(obj_desc, buffer, (u32) length); status = acpi_ex_extract_from_field(obj_desc, buffer, (u32) length);
acpi_ex_release_global_lock(obj_desc->common_field.field_flags); acpi_ex_release_global_lock(obj_desc->common_field.field_flags);
exit: exit:
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
acpi_ut_remove_reference(buffer_desc); acpi_ut_remove_reference(buffer_desc);
} else { } else {
......
...@@ -1002,7 +1002,7 @@ acpi_ex_insert_into_field(union acpi_operand_object *obj_desc, ...@@ -1002,7 +1002,7 @@ acpi_ex_insert_into_field(union acpi_operand_object *obj_desc,
mask, merged_datum, mask, merged_datum,
field_offset); field_offset);
exit: exit:
/* Free temporary buffer if we used one */ /* Free temporary buffer if we used one */
if (new_buffer) { if (new_buffer) {
......
...@@ -388,7 +388,7 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0, ...@@ -388,7 +388,7 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0,
*actual_return_desc = return_desc; *actual_return_desc = return_desc;
cleanup: cleanup:
if (local_operand1 != operand1) { if (local_operand1 != operand1) {
acpi_ut_remove_reference(local_operand1); acpi_ut_remove_reference(local_operand1);
} }
...@@ -718,7 +718,7 @@ acpi_ex_do_logical_op(u16 opcode, ...@@ -718,7 +718,7 @@ acpi_ex_do_logical_op(u16 opcode,
} }
} }
cleanup: cleanup:
/* New object was created if implicit conversion performed - delete */ /* New object was created if implicit conversion performed - delete */
......
...@@ -115,7 +115,7 @@ acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state) ...@@ -115,7 +115,7 @@ acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state)
break; break;
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
...@@ -234,7 +234,7 @@ acpi_status acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state) ...@@ -234,7 +234,7 @@ acpi_status acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -551,7 +551,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state) ...@@ -551,7 +551,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state)
status = acpi_ex_store(return_desc, operand[1], walk_state); status = acpi_ex_store(return_desc, operand[1], walk_state);
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
...@@ -1054,7 +1054,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state) ...@@ -1054,7 +1054,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
......
...@@ -215,7 +215,7 @@ acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state) ...@@ -215,7 +215,7 @@ acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
/* /*
* Since the remainder is not returned indirectly, remove a reference to * Since the remainder is not returned indirectly, remove a reference to
* it. Only the quotient is returned indirectly. * it. Only the quotient is returned indirectly.
...@@ -445,7 +445,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) ...@@ -445,7 +445,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state)
break; break;
} }
store_result_to_target: store_result_to_target:
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
/* /*
...@@ -462,7 +462,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) ...@@ -462,7 +462,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state)
} }
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
...@@ -553,7 +553,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state) ...@@ -553,7 +553,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state)
goto cleanup; goto cleanup;
} }
store_logical_result: store_logical_result:
/* /*
* Set return value to according to logical_result. logical TRUE (all ones) * Set return value to according to logical_result. logical TRUE (all ones)
* Default is FALSE (zero) * Default is FALSE (zero)
...@@ -562,7 +562,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state) ...@@ -562,7 +562,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state)
return_desc->integer.value = ACPI_UINT64_MAX; return_desc->integer.value = ACPI_UINT64_MAX;
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
......
...@@ -124,7 +124,7 @@ acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state) ...@@ -124,7 +124,7 @@ acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -252,7 +252,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) ...@@ -252,7 +252,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state)
status = acpi_ex_store(return_desc, operand[3], walk_state); status = acpi_ex_store(return_desc, operand[3], walk_state);
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
......
...@@ -314,7 +314,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state) ...@@ -314,7 +314,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state)
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
/* Delete return object on error */ /* Delete return object on error */
......
...@@ -521,7 +521,7 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, ...@@ -521,7 +521,7 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state,
*/ */
type = obj_desc->common.type; type = obj_desc->common.type;
exit: exit:
/* Convert internal types to external types */ /* Convert internal types to external types */
switch (type) { switch (type) {
......
...@@ -683,7 +683,7 @@ acpi_ex_resolve_operands(u16 opcode, ...@@ -683,7 +683,7 @@ acpi_ex_resolve_operands(u16 opcode,
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
next_operand: next_operand:
/* /*
* If more operands needed, decrement stack_ptr to point * If more operands needed, decrement stack_ptr to point
* to next operand on stack * to next operand on stack
......
...@@ -560,7 +560,7 @@ acpi_status acpi_hw_register_write(u32 register_id, u32 value) ...@@ -560,7 +560,7 @@ acpi_status acpi_hw_register_write(u32 register_id, u32 value)
break; break;
} }
exit: exit:
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -570,10 +570,10 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 *sleep_type_a, u8 *sleep_type_b) ...@@ -570,10 +570,10 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 *sleep_type_a, u8 *sleep_type_b)
break; break;
} }
cleanup1: cleanup1:
acpi_ut_remove_reference(info->return_object); acpi_ut_remove_reference(info->return_object);
cleanup: cleanup:
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
ACPI_EXCEPTION((AE_INFO, status, ACPI_EXCEPTION((AE_INFO, status,
"While evaluating Sleep State [%s]", "While evaluating Sleep State [%s]",
......
...@@ -240,7 +240,7 @@ acpi_status acpi_ns_root_initialize(void) ...@@ -240,7 +240,7 @@ acpi_status acpi_ns_root_initialize(void)
} }
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
/* Save a handle to "_GPE", it is always present */ /* Save a handle to "_GPE", it is always present */
......
...@@ -620,7 +620,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, ...@@ -620,7 +620,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,
obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */ obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */
} }
cleanup: cleanup:
acpi_os_printf("\n"); acpi_os_printf("\n");
return (AE_OK); return (AE_OK);
} }
......
...@@ -314,7 +314,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info) ...@@ -314,7 +314,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info)
"*** Completed evaluation of object %s ***\n", "*** Completed evaluation of object %s ***\n",
info->relative_pathname)); info->relative_pathname));
cleanup: cleanup:
/* /*
* Namespace was unlocked by the handling acpi_ns* function, so we * Namespace was unlocked by the handling acpi_ns* function, so we
* just free the pathname and return * just free the pathname and return
...@@ -486,7 +486,7 @@ acpi_ns_exec_module_code(union acpi_operand_object *method_obj, ...@@ -486,7 +486,7 @@ acpi_ns_exec_module_code(union acpi_operand_object *method_obj,
parent_node->type = (u8)type; parent_node->type = (u8)type;
} }
exit: exit:
if (parent_obj) { if (parent_obj) {
acpi_ut_remove_reference(parent_obj); acpi_ut_remove_reference(parent_obj);
} }
......
...@@ -213,7 +213,7 @@ acpi_status acpi_ns_initialize_devices(void) ...@@ -213,7 +213,7 @@ acpi_status acpi_ns_initialize_devices(void)
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
error_exit: error_exit:
ACPI_EXCEPTION((AE_INFO, status, "During device initialization")); ACPI_EXCEPTION((AE_INFO, status, "During device initialization"));
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -114,7 +114,7 @@ acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node) ...@@ -114,7 +114,7 @@ acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node)
(void)acpi_tb_release_owner_id(table_index); (void)acpi_tb_release_owner_id(table_index);
} }
unlock: unlock:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
......
...@@ -140,7 +140,7 @@ acpi_ns_one_complete_parse(u32 pass_number, ...@@ -140,7 +140,7 @@ acpi_ns_one_complete_parse(u32 pass_number,
pass_number)); pass_number));
status = acpi_ps_parse_aml(walk_state); status = acpi_ps_parse_aml(walk_state);
cleanup: cleanup:
acpi_ps_delete_parse_tree(parse_root); acpi_ps_delete_parse_tree(parse_root);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -271,7 +271,7 @@ acpi_ns_check_object_type(struct acpi_evaluate_info *info, ...@@ -271,7 +271,7 @@ acpi_ns_check_object_type(struct acpi_evaluate_info *info,
return (AE_OK); /* Successful repair */ return (AE_OK); /* Successful repair */
} }
type_error_exit: type_error_exit:
/* Create a string with all expected types for this predefined object */ /* Create a string with all expected types for this predefined object */
......
...@@ -330,7 +330,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, ...@@ -330,7 +330,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
return (status); return (status);
package_too_small: package_too_small:
/* Error exit for the case with an incorrect package count */ /* Error exit for the case with an incorrect package count */
...@@ -555,7 +555,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, ...@@ -555,7 +555,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,
return (AE_OK); return (AE_OK);
package_too_small: package_too_small:
/* The sub-package count was smaller than required */ /* The sub-package count was smaller than required */
......
...@@ -263,7 +263,7 @@ acpi_ns_simple_repair(struct acpi_evaluate_info *info, ...@@ -263,7 +263,7 @@ acpi_ns_simple_repair(struct acpi_evaluate_info *info,
return (AE_AML_OPERAND_TYPE); return (AE_AML_OPERAND_TYPE);
object_repaired: object_repaired:
/* Object was successfully repaired */ /* Object was successfully repaired */
......
...@@ -478,7 +478,7 @@ acpi_ns_repair_CST(struct acpi_evaluate_info *info, ...@@ -478,7 +478,7 @@ acpi_ns_repair_CST(struct acpi_evaluate_info *info,
removing = TRUE; removing = TRUE;
} }
remove_element: remove_element:
if (removing) { if (removing) {
acpi_ns_remove_element(return_object, i + 1); acpi_ns_remove_element(return_object, i + 1);
outer_element_count--; outer_element_count--;
......
...@@ -722,7 +722,7 @@ acpi_ns_get_node(struct acpi_namespace_node *prefix_node, ...@@ -722,7 +722,7 @@ acpi_ns_get_node(struct acpi_namespace_node *prefix_node,
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
cleanup: cleanup:
ACPI_FREE(internal_path); ACPI_FREE(internal_path);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -442,7 +442,7 @@ acpi_evaluate_object(acpi_handle handle, ...@@ -442,7 +442,7 @@ acpi_evaluate_object(acpi_handle handle,
acpi_ex_exit_interpreter(); acpi_ex_exit_interpreter();
} }
cleanup: cleanup:
/* Free the input parameter list (if we created one) */ /* Free the input parameter list (if we created one) */
...@@ -618,10 +618,10 @@ acpi_walk_namespace(acpi_object_type type, ...@@ -618,10 +618,10 @@ acpi_walk_namespace(acpi_object_type type,
descending_callback, ascending_callback, descending_callback, ascending_callback,
context, return_value); context, return_value);
unlock_and_exit2: unlock_and_exit2:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_read_lock(&acpi_gbl_namespace_rw_lock); (void)acpi_ut_release_read_lock(&acpi_gbl_namespace_rw_lock);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -865,7 +865,7 @@ acpi_attach_data(acpi_handle obj_handle, ...@@ -865,7 +865,7 @@ acpi_attach_data(acpi_handle obj_handle,
status = acpi_ns_attach_data(node, handler, data); status = acpi_ns_attach_data(node, handler, data);
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
} }
...@@ -911,7 +911,7 @@ acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler) ...@@ -911,7 +911,7 @@ acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler)
status = acpi_ns_detach_data(node, handler); status = acpi_ns_detach_data(node, handler);
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
} }
...@@ -958,7 +958,7 @@ acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data) ...@@ -958,7 +958,7 @@ acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data)
status = acpi_ns_get_attached_data(node, handler, data); status = acpi_ns_get_attached_data(node, handler, data);
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
} }
......
...@@ -209,7 +209,7 @@ acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer) ...@@ -209,7 +209,7 @@ acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer)
((char *)buffer->pointer)[ACPI_NAME_SIZE] = 0; ((char *)buffer->pointer)[ACPI_NAME_SIZE] = 0;
status = AE_OK; status = AE_OK;
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
...@@ -497,7 +497,7 @@ acpi_get_object_info(acpi_handle handle, ...@@ -497,7 +497,7 @@ acpi_get_object_info(acpi_handle handle,
*return_buffer = info; *return_buffer = info;
status = AE_OK; status = AE_OK;
cleanup: cleanup:
if (hid) { if (hid) {
ACPI_FREE(hid); ACPI_FREE(hid);
} }
......
...@@ -201,7 +201,7 @@ acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle) ...@@ -201,7 +201,7 @@ acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle)
status = AE_NULL_ENTRY; status = AE_NULL_ENTRY;
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
...@@ -281,7 +281,7 @@ acpi_get_next_object(acpi_object_type type, ...@@ -281,7 +281,7 @@ acpi_get_next_object(acpi_object_type type,
*ret_handle = ACPI_CAST_PTR(acpi_handle, node); *ret_handle = ACPI_CAST_PTR(acpi_handle, node);
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
return (status); return (status);
......
...@@ -297,7 +297,7 @@ acpi_ps_complete_this_op(struct acpi_walk_state * walk_state, ...@@ -297,7 +297,7 @@ acpi_ps_complete_this_op(struct acpi_walk_state * walk_state,
} }
} }
cleanup: cleanup:
/* Now we can actually delete the subtree rooted at Op */ /* Now we can actually delete the subtree rooted at Op */
......
...@@ -142,7 +142,7 @@ static void acpi_ps_start_trace(struct acpi_evaluate_info *info) ...@@ -142,7 +142,7 @@ static void acpi_ps_start_trace(struct acpi_evaluate_info *info)
acpi_dbg_layer = acpi_gbl_trace_dbg_layer; acpi_dbg_layer = acpi_gbl_trace_dbg_layer;
} }
exit: exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
} }
...@@ -185,7 +185,7 @@ static void acpi_ps_stop_trace(struct acpi_evaluate_info *info) ...@@ -185,7 +185,7 @@ static void acpi_ps_stop_trace(struct acpi_evaluate_info *info)
acpi_dbg_level = acpi_gbl_original_dbg_level; acpi_dbg_level = acpi_gbl_original_dbg_level;
acpi_dbg_layer = acpi_gbl_original_dbg_layer; acpi_dbg_layer = acpi_gbl_original_dbg_layer;
exit: exit:
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
} }
...@@ -323,7 +323,7 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info) ...@@ -323,7 +323,7 @@ acpi_status acpi_ps_execute_method(struct acpi_evaluate_info *info)
/* walk_state was deleted by parse_aml */ /* walk_state was deleted by parse_aml */
cleanup: cleanup:
acpi_ps_delete_parse_tree(op); acpi_ps_delete_parse_tree(op);
/* End optional tracing */ /* End optional tracing */
......
...@@ -440,7 +440,7 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, ...@@ -440,7 +440,7 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource,
info++; info++;
} }
exit: exit:
if (!flags_mode) { if (!flags_mode) {
/* Round the resource struct length up to the next boundary (32 or 64) */ /* Round the resource struct length up to the next boundary (32 or 64) */
...@@ -783,7 +783,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, ...@@ -783,7 +783,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource,
info++; info++;
} }
exit: exit:
return_ACPI_STATUS(AE_OK); return_ACPI_STATUS(AE_OK);
} }
......
...@@ -784,7 +784,7 @@ acpi_rs_set_srs_method_data(struct acpi_namespace_node *node, ...@@ -784,7 +784,7 @@ acpi_rs_set_srs_method_data(struct acpi_namespace_node *node,
acpi_ut_remove_reference(args[0]); acpi_ut_remove_reference(args[0]);
cleanup: cleanup:
ACPI_FREE(info); ACPI_FREE(info);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -231,10 +231,10 @@ acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index) ...@@ -231,10 +231,10 @@ acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index)
goto release; goto release;
} }
print_header: print_header:
acpi_tb_print_table_header(table_desc->address, table_desc->pointer); acpi_tb_print_table_header(table_desc->address, table_desc->pointer);
release: release:
(void)acpi_ut_release_mutex(ACPI_MTX_TABLES); (void)acpi_ut_release_mutex(ACPI_MTX_TABLES);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -306,7 +306,7 @@ struct acpi_table_header *acpi_tb_table_override(struct acpi_table_header ...@@ -306,7 +306,7 @@ struct acpi_table_header *acpi_tb_table_override(struct acpi_table_header
return (NULL); /* There was no override */ return (NULL); /* There was no override */
finish_override: finish_override:
ACPI_INFO((AE_INFO, ACPI_INFO((AE_INFO,
"%4.4s %p %s table override, new table: %p", "%4.4s %p %s table override, new table: %p",
......
...@@ -350,7 +350,7 @@ acpi_tb_install_table(acpi_physical_address address, ...@@ -350,7 +350,7 @@ acpi_tb_install_table(acpi_physical_address address,
acpi_tb_delete_table(table_desc); acpi_tb_delete_table(table_desc);
} }
unmap_and_exit: unmap_and_exit:
/* Always unmap the table header that we mapped above */ /* Always unmap the table header that we mapped above */
......
...@@ -466,7 +466,7 @@ acpi_install_table_handler(acpi_table_handler handler, void *context) ...@@ -466,7 +466,7 @@ acpi_install_table_handler(acpi_table_handler handler, void *context)
acpi_gbl_table_handler = handler; acpi_gbl_table_handler = handler;
acpi_gbl_table_handler_context = context; acpi_gbl_table_handler_context = context;
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -507,7 +507,7 @@ acpi_status acpi_remove_table_handler(acpi_table_handler handler) ...@@ -507,7 +507,7 @@ acpi_status acpi_remove_table_handler(acpi_table_handler handler)
acpi_gbl_table_handler = NULL; acpi_gbl_table_handler = NULL;
cleanup: cleanup:
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -201,7 +201,7 @@ static acpi_status acpi_tb_load_namespace(void) ...@@ -201,7 +201,7 @@ static acpi_status acpi_tb_load_namespace(void)
ACPI_INFO((AE_INFO, "All ACPI Tables successfully acquired")); ACPI_INFO((AE_INFO, "All ACPI Tables successfully acquired"));
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_TABLES); (void)acpi_ut_release_mutex(ACPI_MTX_TABLES);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
...@@ -269,7 +269,7 @@ acpi_status acpi_load_table(struct acpi_table_header *table) ...@@ -269,7 +269,7 @@ acpi_status acpi_load_table(struct acpi_table_header *table)
acpi_gbl_table_handler_context); acpi_gbl_table_handler_context);
} }
unlock_and_exit: unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_INTERPRETER); (void)acpi_ut_release_mutex(ACPI_MTX_INTERPRETER);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -552,7 +552,7 @@ acpi_ut_copy_esimple_to_isimple(union acpi_object *external_object, ...@@ -552,7 +552,7 @@ acpi_ut_copy_esimple_to_isimple(union acpi_object *external_object,
*ret_internal_object = internal_object; *ret_internal_object = internal_object;
return_ACPI_STATUS(AE_OK); return_ACPI_STATUS(AE_OK);
error_exit: error_exit:
acpi_ut_remove_reference(internal_object); acpi_ut_remove_reference(internal_object);
return_ACPI_STATUS(AE_NO_MEMORY); return_ACPI_STATUS(AE_NO_MEMORY);
} }
...@@ -899,7 +899,7 @@ acpi_ut_copy_ielement_to_ielement(u8 object_type, ...@@ -899,7 +899,7 @@ acpi_ut_copy_ielement_to_ielement(u8 object_type,
return (status); return (status);
error_exit: error_exit:
acpi_ut_remove_reference(target_object); acpi_ut_remove_reference(target_object);
return (status); return (status);
} }
......
...@@ -649,7 +649,7 @@ acpi_ut_update_object_reference(union acpi_operand_object *object, u16 action) ...@@ -649,7 +649,7 @@ acpi_ut_update_object_reference(union acpi_operand_object *object, u16 action)
return (AE_OK); return (AE_OK);
error_exit: error_exit:
ACPI_EXCEPTION((AE_INFO, status, ACPI_EXCEPTION((AE_INFO, status,
"Could not update object reference count")); "Could not update object reference count"));
......
...@@ -181,7 +181,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, ...@@ -181,7 +181,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node,
*return_desc = info->return_object; *return_desc = info->return_object;
cleanup: cleanup:
ACPI_FREE(info); ACPI_FREE(info);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -184,7 +184,7 @@ acpi_ut_execute_SUB(struct acpi_namespace_node *device_node, ...@@ -184,7 +184,7 @@ acpi_ut_execute_SUB(struct acpi_namespace_node *device_node,
sub->length = length; sub->length = length;
*return_id = sub; *return_id = sub;
cleanup: cleanup:
/* On exit, we must delete the return object */ /* On exit, we must delete the return object */
......
...@@ -148,7 +148,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) ...@@ -148,7 +148,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id)
ACPI_ERROR((AE_INFO, ACPI_ERROR((AE_INFO,
"Could not allocate new OwnerId (255 max), AE_OWNER_ID_LIMIT")); "Could not allocate new OwnerId (255 max), AE_OWNER_ID_LIMIT"));
exit: exit:
(void)acpi_ut_release_mutex(ACPI_MTX_CACHES); (void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
...@@ -643,7 +643,7 @@ acpi_ut_validate_resource(struct acpi_walk_state *walk_state, ...@@ -643,7 +643,7 @@ acpi_ut_validate_resource(struct acpi_walk_state *walk_state,
return (AE_OK); return (AE_OK);
invalid_resource: invalid_resource:
if (walk_state) { if (walk_state) {
ACPI_ERROR((AE_INFO, ACPI_ERROR((AE_INFO,
...@@ -652,7 +652,7 @@ acpi_ut_validate_resource(struct acpi_walk_state *walk_state, ...@@ -652,7 +652,7 @@ acpi_ut_validate_resource(struct acpi_walk_state *walk_state,
} }
return (AE_AML_INVALID_RESOURCE_TYPE); return (AE_AML_INVALID_RESOURCE_TYPE);
bad_resource_length: bad_resource_length:
if (walk_state) { if (walk_state) {
ACPI_ERROR((AE_INFO, ACPI_ERROR((AE_INFO,
......
...@@ -310,7 +310,7 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer) ...@@ -310,7 +310,7 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer)
/* All done, normal exit */ /* All done, normal exit */
all_done: all_done:
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Converted value: %8.8X%8.8X\n", ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Converted value: %8.8X%8.8X\n",
ACPI_FORMAT_UINT64(return_value))); ACPI_FORMAT_UINT64(return_value)));
...@@ -318,7 +318,7 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer) ...@@ -318,7 +318,7 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer)
*ret_integer = return_value; *ret_integer = return_value;
return_ACPI_STATUS(AE_OK); return_ACPI_STATUS(AE_OK);
error_exit: error_exit:
/* Base was set/validated above */ /* Base was set/validated above */
if (base == 10) { if (base == 10) {
......
...@@ -430,7 +430,7 @@ acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation, ...@@ -430,7 +430,7 @@ acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation,
element->next = allocation; element->next = allocation;
} }
unlock_and_exit: unlock_and_exit:
status = acpi_ut_release_mutex(ACPI_MTX_MEMORY); status = acpi_ut_release_mutex(ACPI_MTX_MEMORY);
return_ACPI_STATUS(status); return_ACPI_STATUS(status);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment