mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ACPICA: Miscellaneous lint changes
Unused variables/headers, casting, etc. 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>
This commit is contained in:
parent
65259094c3
commit
e4c1ebfc65
5 changed files with 10 additions and 13 deletions
|
@ -51,7 +51,7 @@
|
||||||
ACPI_MODULE_NAME("evxfevnt")
|
ACPI_MODULE_NAME("evxfevnt")
|
||||||
|
|
||||||
/* Local prototypes */
|
/* Local prototypes */
|
||||||
acpi_status
|
static acpi_status
|
||||||
acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
|
acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
|
||||||
struct acpi_gpe_block_info *gpe_block, void *context);
|
struct acpi_gpe_block_info *gpe_block, void *context);
|
||||||
|
|
||||||
|
@ -785,7 +785,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_gpe_device)
|
||||||
* block device. NULL if the GPE is one of the FADT-defined GPEs.
|
* block device. NULL if the GPE is one of the FADT-defined GPEs.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
acpi_status
|
static acpi_status
|
||||||
acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
|
acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
|
||||||
struct acpi_gpe_block_info *gpe_block, void *context)
|
struct acpi_gpe_block_info *gpe_block, void *context)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,6 +45,10 @@
|
||||||
#include "accommon.h"
|
#include "accommon.h"
|
||||||
#include "acnamesp.h"
|
#include "acnamesp.h"
|
||||||
|
|
||||||
|
#ifdef ACPI_ASL_COMPILER
|
||||||
|
#include "amlcode.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _COMPONENT ACPI_NAMESPACE
|
#define _COMPONENT ACPI_NAMESPACE
|
||||||
ACPI_MODULE_NAME("nssearch")
|
ACPI_MODULE_NAME("nssearch")
|
||||||
|
|
||||||
|
|
|
@ -593,9 +593,6 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object,
|
||||||
} else {
|
} else {
|
||||||
temp_size_needed +=
|
temp_size_needed +=
|
||||||
acpi_ns_get_pathname_length((*sub_object_list)->reference.node);
|
acpi_ns_get_pathname_length((*sub_object_list)->reference.node);
|
||||||
if (!temp_size_needed) {
|
|
||||||
return_ACPI_STATUS(AE_BAD_PARAMETER);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -441,7 +441,7 @@ static void acpi_tb_convert_fadt(void)
|
||||||
&acpi_gbl_FADT,
|
&acpi_gbl_FADT,
|
||||||
fadt_info_table
|
fadt_info_table
|
||||||
[i].length),
|
[i].length),
|
||||||
address32);
|
(u64) address32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -469,7 +469,6 @@ static void acpi_tb_convert_fadt(void)
|
||||||
static void acpi_tb_validate_fadt(void)
|
static void acpi_tb_validate_fadt(void)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
u32 *address32;
|
|
||||||
struct acpi_generic_address *address64;
|
struct acpi_generic_address *address64;
|
||||||
u8 length;
|
u8 length;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -505,15 +504,12 @@ static void acpi_tb_validate_fadt(void)
|
||||||
|
|
||||||
for (i = 0; i < ACPI_FADT_INFO_ENTRIES; i++) {
|
for (i = 0; i < ACPI_FADT_INFO_ENTRIES; i++) {
|
||||||
/*
|
/*
|
||||||
* Generate pointers to the 32-bit and 64-bit addresses, get the
|
* Generate pointer to the 64-bit address, get the register
|
||||||
* register length (width), and the register name
|
* length (width) and the register name
|
||||||
*/
|
*/
|
||||||
address64 = ACPI_ADD_PTR(struct acpi_generic_address,
|
address64 = ACPI_ADD_PTR(struct acpi_generic_address,
|
||||||
&acpi_gbl_FADT,
|
&acpi_gbl_FADT,
|
||||||
fadt_info_table[i].address64);
|
fadt_info_table[i].address64);
|
||||||
address32 =
|
|
||||||
ACPI_ADD_PTR(u32, &acpi_gbl_FADT,
|
|
||||||
fadt_info_table[i].address32);
|
|
||||||
length =
|
length =
|
||||||
*ACPI_ADD_PTR(u8, &acpi_gbl_FADT,
|
*ACPI_ADD_PTR(u8, &acpi_gbl_FADT,
|
||||||
fadt_info_table[i].length);
|
fadt_info_table[i].length);
|
||||||
|
|
|
@ -472,7 +472,7 @@ acpi_status acpi_tb_delete_namespace_by_owner(u32 table_index)
|
||||||
* lock may block, and also since the execution of a namespace walk
|
* lock may block, and also since the execution of a namespace walk
|
||||||
* must be allowed to use the interpreter.
|
* must be allowed to use the interpreter.
|
||||||
*/
|
*/
|
||||||
acpi_ut_release_mutex(ACPI_MTX_INTERPRETER);
|
(void)acpi_ut_release_mutex(ACPI_MTX_INTERPRETER);
|
||||||
status = acpi_ut_acquire_write_lock(&acpi_gbl_namespace_rw_lock);
|
status = acpi_ut_acquire_write_lock(&acpi_gbl_namespace_rw_lock);
|
||||||
|
|
||||||
acpi_ns_delete_namespace_by_owner(owner_id);
|
acpi_ns_delete_namespace_by_owner(owner_id);
|
||||||
|
|
Loading…
Reference in a new issue