Skip to content

Commit

Permalink
acpi: fix integer as NULL pointer warning
Browse files Browse the repository at this point in the history
drivers/acpi/dispatcher/dsmethod.c:568:50: warning: Using plain integer as NULL pointer
drivers/acpi/executer/exmutex.c:329:30: warning: Using plain integer as NULL pointer
drivers/acpi/executer/exmutex.c:466:31: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed May 23, 2008
1 parent 7fafd91 commit b62151d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/acpi/dispatcher/dsmethod.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,

acpi_os_release_mutex(method_desc->method.
mutex->mutex.os_mutex);
method_desc->method.mutex->mutex.thread_id = 0;
method_desc->method.mutex->mutex.thread_id = NULL;
}
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/acpi/executer/exmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ acpi_status acpi_ex_release_mutex_object(union acpi_operand_object *obj_desc)

/* Clear mutex info */

obj_desc->mutex.thread_id = 0;
obj_desc->mutex.thread_id = NULL;
return_ACPI_STATUS(status);
}

Expand Down Expand Up @@ -463,7 +463,7 @@ void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread)
/* Mark mutex unowned */

obj_desc->mutex.owner_thread = NULL;
obj_desc->mutex.thread_id = 0;
obj_desc->mutex.thread_id = NULL;

/* Update Thread sync_level (Last mutex is the important one) */

Expand Down

0 comments on commit b62151d

Please sign in to comment.